Add extra logs the 'send call notification' flow (#4819)
This commit is contained in:
parent
800a3318e6
commit
3ba11db282
6 changed files with 76 additions and 19 deletions
|
|
@ -46,14 +46,18 @@ class RoomCallStatePresenter @Inject constructor(
|
|||
(currentCall as? CurrentCall.RoomCall)?.roomId == room.roomId
|
||||
}
|
||||
}
|
||||
val callState = when {
|
||||
isAvailable.not() -> RoomCallState.Unavailable
|
||||
roomInfo.hasRoomCall -> RoomCallState.OnGoing(
|
||||
canJoinCall = canJoinCall,
|
||||
isUserInTheCall = isUserInTheCall,
|
||||
isUserLocallyInTheCall = isUserLocallyInTheCall,
|
||||
)
|
||||
else -> RoomCallState.StandBy(canStartCall = canJoinCall)
|
||||
val callState by remember {
|
||||
derivedStateOf {
|
||||
when {
|
||||
isAvailable.not() -> RoomCallState.Unavailable
|
||||
roomInfo.hasRoomCall -> RoomCallState.OnGoing(
|
||||
canJoinCall = canJoinCall,
|
||||
isUserInTheCall = isUserInTheCall,
|
||||
isUserLocallyInTheCall = isUserLocallyInTheCall,
|
||||
)
|
||||
else -> RoomCallState.StandBy(canStartCall = canJoinCall)
|
||||
}
|
||||
}
|
||||
}
|
||||
return callState
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue