Use CHECK in MessagesManager::get_dialog_notification_group_id.
This commit is contained in:
parent
d1172d8530
commit
2fc806785f
@ -28936,10 +28936,7 @@ NotificationGroupInfo &MessagesManager::get_notification_group_info(Dialog *d, c
|
|||||||
|
|
||||||
NotificationGroupId MessagesManager::get_dialog_notification_group_id(DialogId dialog_id,
|
NotificationGroupId MessagesManager::get_dialog_notification_group_id(DialogId dialog_id,
|
||||||
NotificationGroupInfo &group_info) {
|
NotificationGroupInfo &group_info) {
|
||||||
if (td_->auth_manager_->is_bot()) {
|
CHECK(!td_->auth_manager_->is_bot());
|
||||||
// just in case
|
|
||||||
return NotificationGroupId();
|
|
||||||
}
|
|
||||||
if (!group_info.is_valid()) {
|
if (!group_info.is_valid()) {
|
||||||
NotificationGroupId next_notification_group_id;
|
NotificationGroupId next_notification_group_id;
|
||||||
do {
|
do {
|
||||||
@ -28959,7 +28956,6 @@ NotificationGroupId MessagesManager::get_dialog_notification_group_id(DialogId d
|
|||||||
next_notification_group_id);
|
next_notification_group_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CHECK(group_info.is_valid());
|
CHECK(group_info.is_valid());
|
||||||
|
|
||||||
// notification group must be preloaded to guarantee that there is no race between
|
// notification group must be preloaded to guarantee that there is no race between
|
||||||
|
Loading…
x
Reference in New Issue
Block a user