From 77ff5b473b6fde29874db82f02ff0c9e4e3e8c8a Mon Sep 17 00:00:00 2001 From: flexsurfer Date: Fri, 13 Sep 2024 14:14:16 +0200 Subject: [PATCH] Data randomly remains in composer after sending a message #18172 (#21262) --- src/status_im/contexts/chat/messenger/composer/events.cljs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/status_im/contexts/chat/messenger/composer/events.cljs b/src/status_im/contexts/chat/messenger/composer/events.cljs index 236701cc29..e10e89fd5c 100644 --- a/src/status_im/contexts/chat/messenger/composer/events.cljs +++ b/src/status_im/contexts/chat/messenger/composer/events.cljs @@ -6,6 +6,7 @@ [status-im.contexts.chat.messenger.composer.link-preview.events :as link-preview] [status-im.contexts.chat.messenger.messages.transport.events :as messages.transport] [taoensso.timbre :as log] + [utils.debounce :as debounce] [utils.emojilib :as emoji] [utils.i18n :as i18n] [utils.re-frame :as rf] @@ -262,6 +263,8 @@ [{{:keys [current-chat-id] :as db} :db :as cofx}] (let [{:keys [input-text metadata]} (get-in db [:chat/inputs current-chat-id]) editing-message (:editing-message metadata)] + (debounce/clear :link-preview/unfurl-urls) + (debounce/clear :mention/on-change-text) (if editing-message (send-edited-message cofx input-text editing-message) (send-messages cofx input-text current-chat-id))))