From 062f329308ff29b3cd25816b95c34b73aacd1e06 Mon Sep 17 00:00:00 2001 From: boris Date: Mon, 9 Dec 2024 13:37:58 +0200 Subject: [PATCH] fix: Crash on typing after sending mention (WPB-14897) (#3719) --- .../ui/home/messagecomposer/state/MessageCompositionHolder.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/wire/android/ui/home/messagecomposer/state/MessageCompositionHolder.kt b/app/src/main/kotlin/com/wire/android/ui/home/messagecomposer/state/MessageCompositionHolder.kt index b7e22716c3..9c0b29b89f 100644 --- a/app/src/main/kotlin/com/wire/android/ui/home/messagecomposer/state/MessageCompositionHolder.kt +++ b/app/src/main/kotlin/com/wire/android/ui/home/messagecomposer/state/MessageCompositionHolder.kt @@ -300,7 +300,8 @@ class MessageCompositionHolder( it.copy( quotedMessageId = null, quotedMessage = null, - editMessageId = null + editMessageId = null, + selectedMentions = emptyList() ) } onSaveDraft(messageComposition.value.toDraft(String.EMPTY))