Improve QuickReplyManager::get_current_state.
This commit is contained in:
parent
a9ab6b739c
commit
85f8f5ec87
@ -1753,19 +1753,16 @@ void QuickReplyManager::get_current_state(vector<td_api::object_ptr<td_api::Upda
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (shortcuts_.are_inited_) {
|
||||||
for (auto &shortcut : shortcuts_.shortcuts_) {
|
for (auto &shortcut : shortcuts_.shortcuts_) {
|
||||||
updates.push_back(get_update_quick_reply_shortcut_object(shortcut.get(), "get_current_state"));
|
updates.push_back(get_update_quick_reply_shortcut_object(shortcut.get(), "get_current_state"));
|
||||||
}
|
|
||||||
|
|
||||||
if (shortcuts_.are_inited_) {
|
|
||||||
updates.push_back(get_update_quick_reply_shortcuts_object());
|
|
||||||
}
|
|
||||||
|
|
||||||
for (auto &shortcut : shortcuts_.shortcuts_) {
|
|
||||||
if (have_all_shortcut_messages(shortcut.get())) {
|
if (have_all_shortcut_messages(shortcut.get())) {
|
||||||
updates.push_back(get_update_quick_reply_shortcut_messages_object(shortcut.get(), "get_current_state"));
|
updates.push_back(get_update_quick_reply_shortcut_messages_object(shortcut.get(), "get_current_state"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
updates.push_back(get_update_quick_reply_shortcuts_object());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace td
|
} // namespace td
|
||||||
|
Loading…
x
Reference in New Issue
Block a user