Composer: Clear draft after sending GIF (#6323)
This commit is contained in:
parent
61361b1107
commit
fb29c7e333
@ -1111,7 +1111,7 @@ const Composer: FC<OwnProps & StateProps> = ({
|
||||
|
||||
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<OwnProps & StateProps> = ({
|
||||
resetComposer(true);
|
||||
});
|
||||
}
|
||||
|
||||
clearDraft({ chatId, threadId, isLocalOnly: true });
|
||||
});
|
||||
|
||||
const handleStickerSelect = useLastCallback((
|
||||
@ -1486,14 +1488,14 @@ const Composer: FC<OwnProps & StateProps> = ({
|
||||
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();
|
||||
});
|
||||
|
||||
2
tauri/Cargo.lock
generated
2
tauri/Cargo.lock
generated
@ -5400,7 +5400,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "telegram_air"
|
||||
version = "2.8.9"
|
||||
version = "2.8.10"
|
||||
dependencies = [
|
||||
"ab_glyph",
|
||||
"cocoa",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user