Immediately send updateNotification for pushes.
GitOrigin-RevId: 7f9ed64f17219e772256b0790586e691bae49d0a
This commit is contained in:
parent
47d8d3223a
commit
78704b6918
@ -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) {
|
||||
|
Reference in New Issue
Block a user