Fix removal of notification updates, changing total_count.
GitOrigin-RevId: ff7076b01f4ae3be898e89c7258f34d6c67b780c
This commit is contained in:
parent
d9dcca7743
commit
41a9359109
@ -633,8 +633,9 @@ void NotificationManager::flush_pending_updates(int32 group_id, const char *sour
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (update != nullptr && (cur_pos == 1 || update_ptr->total_count_ == 0)) {
|
if (update != nullptr && cur_pos == 1 && (updates.size() > 1 || update_ptr->total_count_ == 0)) {
|
||||||
VLOG(notifications) << "Remove empty update " << cur_pos;
|
VLOG(notifications) << "Remove empty update " << cur_pos;
|
||||||
|
CHECK(moved_deleted_notification_ids.empty());
|
||||||
is_changed = true;
|
is_changed = true;
|
||||||
update = nullptr;
|
update = nullptr;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user