diff --git a/src/components/common/Composer.tsx b/src/components/common/Composer.tsx index 86aa8672c..bee36799a 100644 --- a/src/components/common/Composer.tsx +++ b/src/components/common/Composer.tsx @@ -1010,8 +1010,9 @@ const Composer: FC = ({ } lastMessageSendTimeSeconds.current = getServerTime(); - - clearDraft({ chatId, isLocalOnly: true, shouldKeepReply: isForwarding }); + clearDraft({ + chatId, threadId, isLocalOnly: true, shouldKeepReply: isForwarding, + }); if (IS_IOS && messageInput && messageInput === document.activeElement) { applyIosAutoCapitalizationFix(messageInput); @@ -1164,7 +1165,8 @@ const Composer: FC = ({ isSilent, shouldUpdateStickerSetOrder: shouldUpdateStickerSetOrder && canUpdateStickerSetsOrder, }); - clearDraft({ chatId, isLocalOnly: true }); + clearDraft({ chatId, threadId, isLocalOnly: true }); + requestMeasure(() => { resetComposer(shouldPreserveInput); });