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;
}
Aggregations