Immediately send updateNotification for pushes.

GitOrigin-RevId: 7f9ed64f17219e772256b0790586e691bae49d0a
This commit is contained in:
levlam 2019-04-09 17:43:56 +03:00
parent 47d8d3223a
commit 78704b6918
1 changed files with 3 additions and 0 deletions

View File

@ -972,6 +972,9 @@ void NotificationManager::add_update_notification(NotificationGroupId notificati
add_update(notification_group_id.get(), td_api::make_object<td_api::updateNotification>(
notification_group_id.get(), std::move(notification_object)));
if (!notification.type->can_be_delayed()) {
force_flush_pending_updates(notification_group_id, "add_update_notification");
}
}
void NotificationManager::flush_pending_updates(int32 group_id, const char *source) {