diff --git a/td/telegram/QuickReplyManager.cpp b/td/telegram/QuickReplyManager.cpp index 4bd01cac1..75a1f0d6a 100644 --- a/td/telegram/QuickReplyManager.cpp +++ b/td/telegram/QuickReplyManager.cpp @@ -1127,6 +1127,7 @@ void QuickReplyManager::on_reload_quick_reply_shortcuts( FlatHashSet old_shortcut_ids; for (auto &shortcut : shortcuts_.shortcuts_) { + CHECK(shortcut->shortcut_id_.is_valid()); old_shortcut_ids.insert(shortcut->shortcut_id_); } FlatHashSet added_shortcut_ids; @@ -1385,6 +1386,7 @@ void QuickReplyManager::reorder_quick_reply_shortcuts(const vector