Support updateHavePendingNotifications in getCurrentState.

GitOrigin-RevId: b79d24241ce622b86e9e6eba00df489f25b3c91c
This commit is contained in:
levlam 2018-12-27 19:53:12 +03:00
parent b9bf652ad2
commit eb382c0d0b

View File

@ -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() {