mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 09:49:30 +01:00
Show dialog when group call is full.
This commit is contained in:
@@ -325,6 +325,7 @@ public class GroupActionProcessor extends DeviceAwareActionProcessor {
|
||||
.changeCallInfoState()
|
||||
.callState(WebRtcViewModel.State.CALL_DISCONNECTED)
|
||||
.groupCallState(WebRtcViewModel.GroupCallState.DISCONNECTED)
|
||||
.setGroupCallEndReason(groupCallEndReason)
|
||||
.build();
|
||||
|
||||
webRtcInteractor.postStateUpdate(currentState);
|
||||
|
||||
@@ -3,6 +3,7 @@ package org.thoughtcrime.securesms.service.webrtc.state
|
||||
import com.annimon.stream.OptionalLong
|
||||
import org.signal.ringrtc.CallId
|
||||
import org.signal.ringrtc.GroupCall
|
||||
import org.signal.ringrtc.GroupCall.GroupCallEndReason
|
||||
import org.thoughtcrime.securesms.events.CallParticipant
|
||||
import org.thoughtcrime.securesms.events.CallParticipantId
|
||||
import org.thoughtcrime.securesms.events.WebRtcViewModel
|
||||
@@ -30,7 +31,8 @@ data class CallInfoState(
|
||||
var remoteDevicesCount: OptionalLong = OptionalLong.empty(),
|
||||
var participantLimit: Long? = null,
|
||||
var pendingParticipants: PendingParticipantCollection = PendingParticipantCollection(),
|
||||
var callLinkDisconnectReason: CallLinkDisconnectReason? = null
|
||||
var callLinkDisconnectReason: CallLinkDisconnectReason? = null,
|
||||
var groupCallEndReason: GroupCallEndReason? = null
|
||||
) {
|
||||
|
||||
val remoteCallParticipants: List<CallParticipant>
|
||||
|
||||
@@ -369,5 +369,10 @@ public class WebRtcServiceStateBuilder {
|
||||
toBuild.setCallLinkDisconnectReason(callLinkDisconnectReason);
|
||||
return this;
|
||||
}
|
||||
|
||||
public @NonNull CallInfoStateBuilder setGroupCallEndReason(@Nullable GroupCall.GroupCallEndReason groupCallEndReason) {
|
||||
toBuild.setGroupCallEndReason(groupCallEndReason);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user