Ensure the user can join the call even if they has joined a call in another session.

This commit is contained in:
Benoit Marty
2024-11-06 09:43:38 +01:00
parent 58e66963d8
commit 1c78f96148
10 changed files with 116 additions and 1 deletions
@@ -20,6 +20,7 @@ sealed interface RoomCallState {
data class OnGoing(
val canJoinCall: Boolean,
val isUserInTheCall: Boolean,
val isUserLocallyInTheCall: Boolean,
) : RoomCallState
}
@@ -22,9 +22,11 @@ open class RoomCallStateProvider : PreviewParameterProvider<RoomCallState> {
fun anOngoingCallState(
canJoinCall: Boolean = true,
isUserInTheCall: Boolean = false,
isUserLocallyInTheCall: Boolean = isUserInTheCall,
) = RoomCallState.OnGoing(
canJoinCall = canJoinCall,
isUserInTheCall = isUserInTheCall,
isUserLocallyInTheCall = isUserLocallyInTheCall,
)
fun aStandByCallState(