From fb29c7e3331faf272847ab7241cf2150c6f4e305 Mon Sep 17 00:00:00 2001 From: zubiden <19638254+zubiden@users.noreply.github.com> Date: Wed, 8 Oct 2025 12:33:29 +0200 Subject: [PATCH] Composer: Clear draft after sending GIF (#6323) --- src/components/common/Composer.tsx | 8 +++++--- tauri/Cargo.lock | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/common/Composer.tsx b/src/components/common/Composer.tsx index efbee2119..26e17cd15 100644 --- a/src/components/common/Composer.tsx +++ b/src/components/common/Composer.tsx @@ -1111,7 +1111,7 @@ const Composer: FC = ({ lastMessageSendTimeSeconds.current = getServerTime(); - clearDraft({ chatId, isLocalOnly: true }); + clearDraft({ chatId, threadId, isLocalOnly: true }); // Wait until message animation starts requestMeasure(() => { @@ -1397,6 +1397,8 @@ const Composer: FC = ({ resetComposer(true); }); } + + clearDraft({ chatId, threadId, isLocalOnly: true }); }); const handleStickerSelect = useLastCallback(( @@ -1486,14 +1488,14 @@ const Composer: FC = ({ applyIosAutoCapitalizationFix(messageInput); } - clearDraft({ chatId, isLocalOnly: true }); + clearDraft({ chatId, threadId, isLocalOnly: true }); requestMeasure(() => { resetComposer(); }); }); const handleBotCommandSelect = useLastCallback(() => { - clearDraft({ chatId, isLocalOnly: true }); + clearDraft({ chatId, threadId, isLocalOnly: true }); requestMeasure(() => { resetComposer(); }); diff --git a/tauri/Cargo.lock b/tauri/Cargo.lock index 194aebd0a..ca958e60e 100644 --- a/tauri/Cargo.lock +++ b/tauri/Cargo.lock @@ -5400,7 +5400,7 @@ dependencies = [ [[package]] name = "telegram_air" -version = "2.8.9" +version = "2.8.10" dependencies = [ "ab_glyph", "cocoa",