From 35f9e339c9fb5da4ac21211407575d1e4ef954f9 Mon Sep 17 00:00:00 2001 From: Marcel Hibbe Date: Fri, 17 Jan 2025 11:52:33 +0100 Subject: [PATCH] make sure that canDeleteConversation is used to determine if "Delete all message" is shown. Signed-off-by: Marcel Hibbe --- .../nextcloud/talk/conversationinfo/ConversationInfoActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 b7b949c56..21de3d37f 100644 --- a/app/src/main/java/com/nextcloud/talk/conversationinfo/ConversationInfoActivity.kt +++ b/app/src/main/java/com/nextcloud/talk/conversationinfo/ConversationInfoActivity.kt @@ -782,7 +782,7 @@ class ConversationInfoActivity : if (CapabilitiesUtil.hasSpreedFeatureCapability( spreedCapabilities, SpreedFeatures.CLEAR_HISTORY - ) + ) && conversationCopy.canDeleteConversation ) { binding.clearConversationHistory.visibility = VISIBLE } else {