rename voiceIntent to isAudioCall
This commit is contained in:
@@ -23,7 +23,7 @@ sealed interface RoomCallState {
|
||||
|
||||
data class OnGoing(
|
||||
val canJoinCall: Boolean,
|
||||
val isVoiceIntent: Boolean,
|
||||
val isAudioCall: Boolean,
|
||||
val isUserInTheCall: Boolean,
|
||||
val isUserLocallyInTheCall: Boolean,
|
||||
) : RoomCallState
|
||||
|
||||
@@ -17,7 +17,7 @@ open class RoomCallStateProvider : PreviewParameterProvider<RoomCallState> {
|
||||
anOngoingCallState(),
|
||||
anOngoingCallState(canJoinCall = false),
|
||||
anOngoingCallState(canJoinCall = true, isUserInTheCall = true),
|
||||
anOngoingCallState(canJoinCall = true, isVoiceIntent = true),
|
||||
anOngoingCallState(canJoinCall = true, isAudioCall = true),
|
||||
RoomCallState.Unavailable,
|
||||
)
|
||||
}
|
||||
@@ -26,12 +26,12 @@ fun anOngoingCallState(
|
||||
canJoinCall: Boolean = true,
|
||||
isUserInTheCall: Boolean = false,
|
||||
isUserLocallyInTheCall: Boolean = isUserInTheCall,
|
||||
isVoiceIntent: Boolean = false,
|
||||
isAudioCall: Boolean = false,
|
||||
) = RoomCallState.OnGoing(
|
||||
canJoinCall = canJoinCall,
|
||||
isUserInTheCall = isUserInTheCall,
|
||||
isUserLocallyInTheCall = isUserLocallyInTheCall,
|
||||
isVoiceIntent = isVoiceIntent
|
||||
isAudioCall = isAudioCall
|
||||
)
|
||||
|
||||
fun aStandByCallState(
|
||||
|
||||
@@ -56,7 +56,8 @@ class RoomCallStatePresenter(
|
||||
canJoinCall = canJoinCall,
|
||||
isUserInTheCall = isUserInTheCall,
|
||||
isUserLocallyInTheCall = isUserLocallyInTheCall,
|
||||
isVoiceIntent = false // TODO
|
||||
// TODO resolve intent while the call is ongoing
|
||||
isAudioCall = false
|
||||
)
|
||||
else -> RoomCallState.StandBy(canStartCall = canJoinCall)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user