2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Fix draft clearing on message send.

Regression was introduced in caef7dde24.
This commit is contained in:
John Preston
2019-08-30 13:17:18 +03:00
parent f199205592
commit 5758f756c9
6 changed files with 7 additions and 4 deletions

View File

@@ -114,6 +114,7 @@ void activateBotCommand(
Ui::show(Box<ConfirmBox>(tr::lng_bot_share_phone(tr::now), tr::lng_bot_share_phone_confirm(tr::now), [=] {
Ui::showPeerHistory(history, ShowAtTheEndMsgId);
auto action = Api::SendAction(history);
action.clearDraft = false;
action.replyTo = msgId;
history->session().api().shareContact(
history->session().user(),