Fix sending updateNotification.

GitOrigin-RevId: a719da72bc9ef7869604ba47d790dda35c695fb7
This commit is contained in:
levlam 2018-12-05 20:23:10 +03:00
parent b21a1abd7d
commit c371ac345d
1 changed files with 2 additions and 1 deletions

View File

@ -1194,7 +1194,8 @@ void NotificationManager::edit_notification(NotificationGroupId group_id, Notifi
auto &notification = group.notifications[i];
if (notification.notification_id == notification_id) {
notification.type = std::move(type);
if (i + max_notification_group_size_ >= group.notifications.size()) {
if (i + max_notification_group_size_ >= group.notifications.size() &&
!(get_last_updated_group_key() < group_it->first)) {
add_update_notification(group_it->first.group_id, group_it->first.dialog_id, notification);
}
return;