Support updateHavePendingNotifications in getCurrentState.
GitOrigin-RevId: b79d24241ce622b86e9e6eba00df489f25b3c91c
This commit is contained in:
parent
b9bf652ad2
commit
eb382c0d0b
@ -2044,6 +2044,9 @@ void NotificationManager::get_current_state(vector<td_api::object_ptr<td_api::Up
|
|||||||
if (update != nullptr) {
|
if (update != nullptr) {
|
||||||
updates.push_back(std::move(update));
|
updates.push_back(std::move(update));
|
||||||
}
|
}
|
||||||
|
if (pending_notification_update_count_ != 0) {
|
||||||
|
updates.push_back(td_api::make_object<td_api::updateHavePendingNotifications>(true));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void NotificationManager::flush_all_notifications() {
|
void NotificationManager::flush_all_notifications() {
|
||||||
|
Loading…
Reference in New Issue
Block a user