mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 18:00:02 +01:00
Split remote user check for group vs individual calls.
This commit is contained in:
committed by
Greyson Parrelli
parent
3c086f347e
commit
d6be14a95f
@@ -105,6 +105,13 @@ class WebRtcViewModel(state: WebRtcServiceState) {
|
||||
val isCallLink: Boolean = state.callInfoState.callRecipient.isCallLink
|
||||
val callLinkDisconnectReason: CallLinkDisconnectReason? = state.callInfoState.callLinkDisconnectReason
|
||||
|
||||
@get:JvmName("hasAtLeastOneRemote")
|
||||
val hasAtLeastOneRemote = if (state.callInfoState.callRecipient.isIndividual) {
|
||||
remoteParticipants.isNotEmpty()
|
||||
} else {
|
||||
remoteDevicesCount.orElse(0L) > 0L
|
||||
}
|
||||
|
||||
@get:JvmName("shouldRingGroup")
|
||||
val ringGroup: Boolean = state.getCallSetupState(state.callInfoState.activePeer?.callId).ringGroup
|
||||
val ringerRecipient: Recipient = state.getCallSetupState(state.callInfoState.activePeer?.callId).ringerRecipient
|
||||
|
||||
Reference in New Issue
Block a user