From 97934c8289b38e5c83dc4c1f7cb2d2a96569a41b Mon Sep 17 00:00:00 2001 From: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com> Date: Fri, 24 Nov 2023 21:10:03 +0400 Subject: [PATCH] android, desktop: fix alert text for deleting received message --- .../kotlin/chat/simplex/common/views/chat/item/ChatItemView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/item/ChatItemView.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/item/ChatItemView.kt index 17e2fe044..bd5daf391 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/item/ChatItemView.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/item/ChatItemView.kt @@ -133,7 +133,7 @@ fun ChatItemView( } fun deleteMessageQuestionText(): String { - return if (fullDeleteAllowed) { + return if (!sent || fullDeleteAllowed) { generalGetString(MR.strings.delete_message_cannot_be_undone_warning) } else { generalGetString(MR.strings.delete_message_mark_deleted_warning)