From 06f1aa9e26542f57e22a7317fa9ef5a086e415af Mon Sep 17 00:00:00 2001 From: levlam Date: Sun, 2 Jun 2019 01:18:05 +0300 Subject: [PATCH] Fix CHECK. GitOrigin-RevId: 03f3289ee5978403b6d2c9a72f3180730a152958 --- td/telegram/NotificationManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td/telegram/NotificationManager.cpp b/td/telegram/NotificationManager.cpp index 8f51a45c0..4ff61bb48 100644 --- a/td/telegram/NotificationManager.cpp +++ b/td/telegram/NotificationManager.cpp @@ -2140,6 +2140,7 @@ void NotificationManager::remove_temporary_notifications(NotificationGroupId gro } std::reverse(added_notifications.begin(), added_notifications.end()); } + CHECK(get_temporary_notification_total_count(group_it->second) == 0); on_notifications_removed(std::move(group_it), std::move(added_notifications), std::move(removed_notification_ids), false); @@ -2148,7 +2149,6 @@ void NotificationManager::remove_temporary_notifications(NotificationGroupId gro group_id, [](const td_api::object_ptr ¬ification) { return notification->get_id() == td_api::notificationTypeNewPushMessage::ID; }); - CHECK(get_temporary_notification_total_count(group_it->second) == 0); } int32 NotificationManager::get_temporary_notification_total_count(const NotificationGroup &group) {