From d0e8dd7b81cfb107447d64d66de0fde29e4dd6c3 Mon Sep 17 00:00:00 2001 From: levlam Date: Sun, 21 Apr 2024 02:37:54 +0300 Subject: [PATCH] Add some checks. --- td/telegram/QuickReplyManager.cpp | 2 ++ 1 file changed, 2 insertions(+) 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