From f1c3bb5c33c8cb0d80f8950baac2db100ad079b2 Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 5 Mar 2024 14:41:35 +0300 Subject: [PATCH] Fix sending update about changed shortcut. --- td/telegram/QuickReplyManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/td/telegram/QuickReplyManager.cpp b/td/telegram/QuickReplyManager.cpp index c4c18814a..6ca16fc6e 100644 --- a/td/telegram/QuickReplyManager.cpp +++ b/td/telegram/QuickReplyManager.cpp @@ -767,11 +767,11 @@ void QuickReplyManager::on_reload_quick_reply_shortcuts( change_message_files({shortcut_id, first_message_id}, shortcut->messages_[0].get(), {}); } else { if (update_shortcut_from(shortcut.get(), old_shortcut, true, &is_object_changed)) { - if (is_object_changed) { - changed_shortcut_ids.push_back(shortcut_id); - } changed_message_shortcut_ids.push_back(shortcut_id); } + if (is_object_changed) { + changed_shortcut_ids.push_back(shortcut_id); + } old_shortcut_ids.erase(shortcut_id); }