Remove temporary notifications on notification group removal.

GitOrigin-RevId: ac06a2c1181508e833cfb129892cb45b1b70e6eb
This commit is contained in:
levlam 2019-03-30 23:52:54 +03:00
parent e28d0eb3c0
commit 17dfff9297
1 changed files with 4 additions and 0 deletions

View File

@ -1791,6 +1791,10 @@ void NotificationManager::remove_notification_group(NotificationGroupId group_id
return promise.set_value(Unit());
}
if (new_total_count == 0) {
remove_temporary_notifications(group_id);
}
VLOG(notifications) << "Remove " << group_id << " up to " << max_notification_id << " or " << max_message_id
<< " with new_total_count = " << new_total_count << " and force_update = " << force_update;