diff --git a/td/telegram/QuickReplyManager.cpp b/td/telegram/QuickReplyManager.cpp index 8c7988be1..37b145bc8 100644 --- a/td/telegram/QuickReplyManager.cpp +++ b/td/telegram/QuickReplyManager.cpp @@ -707,6 +707,9 @@ bool QuickReplyManager::is_shortcut_list_changed(const vectorshortcut_id_, Auto()); + } set_promises(shortcuts_.load_queries_); } @@ -906,7 +909,9 @@ void QuickReplyManager::on_reload_quick_reply_messages( return fail_promises(promises, Status::Error(400, "Shortcut not found")); } for (auto &promise : promises) { - return promise.set_value(get_quick_reply_messages_object(s)); + if (promise) { + promise.set_value(get_quick_reply_messages_object(s)); + } } }