From 07cf834cc51bd4bb7c149bd666d634010e6a171c Mon Sep 17 00:00:00 2001 From: Marcel Hibbe Date: Fri, 8 Nov 2024 14:27:41 +0100 Subject: [PATCH] hide archiveConversationTextHint when archive not available Signed-off-by: Marcel Hibbe --- .../talk/conversationinfo/ConversationInfoActivity.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/conversationinfo/ConversationInfoActivity.kt b/app/src/main/java/com/nextcloud/talk/conversationinfo/ConversationInfoActivity.kt index 56630615a..9f1809eee 100644 --- a/app/src/main/java/com/nextcloud/talk/conversationinfo/ConversationInfoActivity.kt +++ b/app/src/main/java/com/nextcloud/talk/conversationinfo/ConversationInfoActivity.kt @@ -403,10 +403,9 @@ class ConversationInfoActivity : } } - private fun webinaryRoomType(conversation: ConversationModel): Boolean { - return conversation.type == ConversationEnums.ConversationType.ROOM_GROUP_CALL || + private fun webinaryRoomType(conversation: ConversationModel): Boolean = + conversation.type == ConversationEnums.ConversationType.ROOM_GROUP_CALL || conversation.type == ConversationEnums.ConversationType.ROOM_PUBLIC_CALL - } private fun reconfigureLobbyTimerView(dateTime: Calendar? = null) { val isChecked = binding.webinarInfoView.lobbySwitch.isChecked @@ -794,6 +793,7 @@ class ConversationInfoActivity : if (!CapabilitiesUtil.isArchiveConversationsAvailable(spreedCapabilities)) { binding.archiveConversationBtn.visibility = GONE + binding.archiveConversationTextHint.visibility = GONE } binding.archiveConversationBtn.setOnClickListener {