mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 01:40:07 +01:00
Implement proper in-call status for call links.
This commit is contained in:
@@ -56,7 +56,7 @@ class CallLinkConnectedActionProcessor(
|
||||
|
||||
return superState.builder()
|
||||
.changeCallInfoState()
|
||||
.setPendingParticipants(pendingParticipants)
|
||||
.setCallLinkPendingParticipants(pendingParticipants)
|
||||
.build()
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ class CallLinkConnectedActionProcessor(
|
||||
currentState
|
||||
.builder()
|
||||
.changeCallInfoState()
|
||||
.setPendingParticipantApproved(recipient)
|
||||
.setCallLinkPendingParticipantApproved(recipient)
|
||||
.build()
|
||||
} catch (e: CallException) {
|
||||
Log.w(tag, "Failed to approve user.", e)
|
||||
@@ -93,7 +93,7 @@ class CallLinkConnectedActionProcessor(
|
||||
currentState
|
||||
.builder()
|
||||
.changeCallInfoState()
|
||||
.setPendingParticipantRejected(recipient)
|
||||
.setCallLinkPendingParticipantRejected(recipient)
|
||||
.build()
|
||||
} catch (e: CallException) {
|
||||
Log.w(tag, "Failed to deny user.", e)
|
||||
|
||||
@@ -345,17 +345,17 @@ public class WebRtcServiceStateBuilder {
|
||||
return this;
|
||||
}
|
||||
|
||||
public @NonNull CallInfoStateBuilder setPendingParticipants(@NonNull List<Recipient> pendingParticipants) {
|
||||
public @NonNull CallInfoStateBuilder setCallLinkPendingParticipants(@NonNull List<Recipient> pendingParticipants) {
|
||||
toBuild.setPendingParticipants(toBuild.getPendingParticipants().withRecipients(pendingParticipants));
|
||||
return this;
|
||||
}
|
||||
|
||||
public @NonNull CallInfoStateBuilder setPendingParticipantApproved(@NonNull Recipient participant) {
|
||||
public @NonNull CallInfoStateBuilder setCallLinkPendingParticipantApproved(@NonNull Recipient participant) {
|
||||
toBuild.setPendingParticipants(toBuild.getPendingParticipants().withApproval(participant));
|
||||
return this;
|
||||
}
|
||||
|
||||
public @NonNull CallInfoStateBuilder setPendingParticipantRejected(@NonNull Recipient participant) {
|
||||
public @NonNull CallInfoStateBuilder setCallLinkPendingParticipantRejected(@NonNull Recipient participant) {
|
||||
toBuild.setPendingParticipants(toBuild.getPendingParticipants().withDenial(participant));
|
||||
return this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user