Do not update unreceived notification update count if received duplicate group_id.
GitOrigin-RevId: 7856aef2ce0fc42ab76ffbb5e4fe1f613f933ad5
This commit is contained in:
parent
0cb809581c
commit
8a95f1d21e
@ -29192,6 +29192,7 @@ void MessagesManager::do_get_channel_difference(DialogId dialog_id, int32 pts, b
|
||||
return;
|
||||
}
|
||||
|
||||
// can be called multiple times before after_get_channel_difference
|
||||
const Dialog *d = get_dialog(dialog_id);
|
||||
if (d != nullptr) {
|
||||
if (d->message_notification_group.group_id.is_valid()) {
|
||||
|
@ -3903,8 +3903,9 @@ void NotificationManager::before_get_chat_difference(NotificationGroupId group_i
|
||||
|
||||
VLOG(notifications) << "Before get chat difference in " << group_id;
|
||||
CHECK(group_id.is_valid());
|
||||
running_get_chat_difference_.insert(group_id.get());
|
||||
on_unreceived_notification_update_count_changed(1, group_id.get(), "before_get_chat_difference");
|
||||
if (running_get_chat_difference_.insert(group_id.get()).second) {
|
||||
on_unreceived_notification_update_count_changed(1, group_id.get(), "before_get_chat_difference");
|
||||
}
|
||||
}
|
||||
|
||||
void NotificationManager::after_get_chat_difference(NotificationGroupId group_id) {
|
||||
|
Loading…
Reference in New Issue
Block a user