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