From e43fe4774e7a3b553888e2ddf7185c3c09de19fc Mon Sep 17 00:00:00 2001 From: Marcel Hibbe Date: Wed, 24 Aug 2022 11:45:58 +0200 Subject: [PATCH] show explanation for expire messages Signed-off-by: Marcel Hibbe --- .../talk/controllers/ConversationInfoController.kt | 1 + .../main/res/layout/controller_conversation_info.xml | 11 +++++++++++ app/src/main/res/values/strings.xml | 1 + 3 files changed, 13 insertions(+) diff --git a/app/src/main/java/com/nextcloud/talk/controllers/ConversationInfoController.kt b/app/src/main/java/com/nextcloud/talk/controllers/ConversationInfoController.kt index 5e86e27d3..891e90156 100644 --- a/app/src/main/java/com/nextcloud/talk/controllers/ConversationInfoController.kt +++ b/app/src/main/java/com/nextcloud/talk/controllers/ConversationInfoController.kt @@ -705,6 +705,7 @@ class ConversationInfoController(args: Bundle) : databaseStorageModule?.setMessageExpiration(conversation!!.messageExpiration) binding.conversationInfoExpireMessages.setStorageModule(databaseStorageModule) binding.conversationInfoExpireMessages.visibility = View.VISIBLE + binding.conversationInfoExpireMessagesExplanation.visibility = View.VISIBLE } else { binding.categoryConversationSettings.visibility = View.GONE } diff --git a/app/src/main/res/layout/controller_conversation_info.xml b/app/src/main/res/layout/controller_conversation_info.xml index 3f924d4ba..cbd69562b 100644 --- a/app/src/main/res/layout/controller_conversation_info.xml +++ b/app/src/main/res/layout/controller_conversation_info.xml @@ -192,6 +192,17 @@ apc:mp_title="@string/nc_expire_messages"> + + + 1 day 8 hours 1 hour + Expire chat messages after a certain time. Files shared into the chat will only be unshared from the conversation but are not deleted for the owner.