Add GroupCall.JoinState.PENDING support.

This commit is contained in:
Alex Hart
2023-08-08 15:41:54 -03:00
parent 30d0b6fd0e
commit 6898595f8a
5 changed files with 14 additions and 3 deletions

View File

@@ -55,6 +55,7 @@ class WebRtcViewModel(state: WebRtcServiceState) {
CONNECTING,
RECONNECTING,
CONNECTED,
CONNECTED_AND_PENDING,
CONNECTED_AND_JOINING,
CONNECTED_AND_JOINED;
@@ -67,7 +68,7 @@ class WebRtcViewModel(state: WebRtcServiceState) {
val isConnected: Boolean
get() {
return when (this) {
CONNECTED, CONNECTED_AND_JOINING, CONNECTED_AND_JOINED -> true
CONNECTED, CONNECTED_AND_JOINING, CONNECTED_AND_JOINED, CONNECTED_AND_PENDING -> true
else -> false
}
}