Fix sending update about changed shortcut.

This commit is contained in:
levlam 2024-03-05 14:41:35 +03:00
parent c4d92b3f00
commit f1c3bb5c33

View File

@ -767,11 +767,11 @@ void QuickReplyManager::on_reload_quick_reply_shortcuts(
change_message_files({shortcut_id, first_message_id}, shortcut->messages_[0].get(), {}); change_message_files({shortcut_id, first_message_id}, shortcut->messages_[0].get(), {});
} else { } else {
if (update_shortcut_from(shortcut.get(), old_shortcut, true, &is_object_changed)) { 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); 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); old_shortcut_ids.erase(shortcut_id);
} }