mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
Add extra logs the 'send call notification' flow (#4819)
This commit is contained in:
committed by
GitHub
parent
800a3318e6
commit
3ba11db282
+12
-8
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user