From b080e891bb4409494a1597a2fc772edb9e3a9b70 Mon Sep 17 00:00:00 2001 From: Marcel Hibbe Date: Wed, 18 Sep 2024 16:46:32 +0200 Subject: [PATCH] fix to not remove call buttons for federated conversations after 30 seconds After 30 seconds (when the capabilities were updated) the call buttons of federated conversations were removed (this was done back then when fed calls were not implemented). However this happened not always because of the check "if (this::spreedCapabilities.isInitialized) {...." It seems this check sometimes is false when it's supposed to be true. This has be to further investigated and has to be be simplified/improved by a cleaner architecture. Signed-off-by: Marcel Hibbe --- app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt b/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt index 94ffafe28a..f71e164646 100644 --- a/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt +++ b/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt @@ -2812,10 +2812,7 @@ class ChatActivity : menu.removeItem(R.id.shared_items) } - if (currentConversation!!.remoteServer != null) { - menu.removeItem(R.id.conversation_video_call) - menu.removeItem(R.id.conversation_voice_call) - } else if (CapabilitiesUtil.isAbleToCall(spreedCapabilities)) { + if (CapabilitiesUtil.isAbleToCall(spreedCapabilities)) { conversationVoiceCallMenuItem = menu.findItem(R.id.conversation_voice_call) conversationVideoMenuItem = menu.findItem(R.id.conversation_video_call)