Search in sources :

Example 1 with VoiceChannelState

use of com.waz.api.VoiceChannelState in project wire-android by wireapp.

the class ScalaConversationStore method hasOngoingCallInCurrentConversation.

@Override
public boolean hasOngoingCallInCurrentConversation() {
    if (selectedConversation == null) {
        return false;
    }
    VoiceChannel voiceChannel = selectedConversation.getVoiceChannel();
    if (voiceChannel == null) {
        return false;
    }
    VoiceChannelState state = voiceChannel.getState();
    return state != VoiceChannelState.NO_ACTIVE_USERS && state != VoiceChannelState.UNKNOWN;
}
Also used : VoiceChannelState(com.waz.api.VoiceChannelState) VoiceChannel(com.waz.api.VoiceChannel)

Aggregations

VoiceChannel (com.waz.api.VoiceChannel)1 VoiceChannelState (com.waz.api.VoiceChannelState)1