Fix total_count.
GitOrigin-RevId: 23ddc4c41de65b22e668886208abe8b84aaa8e24
This commit is contained in:
parent
a199a17282
commit
5ee8b9ee3b
@ -248,6 +248,7 @@ void NotificationManager::do_flush_pending_notifications(NotificationGroupKey &g
|
||||
group.notifications.push_back(std::move(notification));
|
||||
}
|
||||
}
|
||||
group.total_count += narrow_cast<int32>(added_notifications.size());
|
||||
if (added_notifications.size() > max_notification_group_size_) {
|
||||
added_notifications.erase(
|
||||
added_notifications.begin(),
|
||||
@ -265,7 +266,6 @@ void NotificationManager::do_flush_pending_notifications(NotificationGroupKey &g
|
||||
}
|
||||
}
|
||||
|
||||
group.total_count += narrow_cast<int32>(added_notifications.size());
|
||||
if (!added_notifications.empty()) {
|
||||
send_update_notification_group(td_api::make_object<td_api::updateNotificationGroup>(
|
||||
group_key.group_id.get(), group_key.dialog_id.get(), pending_notifications[0].settings_dialog_id.get(),
|
||||
|
Loading…
Reference in New Issue
Block a user