Do not warn on wrong unread counter in nonjoined chats.

GitOrigin-RevId: f81f747679a9beab19defeb6ab36d9c5ed0ca6ea
This commit is contained in:
levlam 2020-03-05 20:12:50 +03:00
parent f8abeef8ad
commit 35bc27c028

View File

@ -9436,8 +9436,10 @@ int32 MessagesManager::calc_new_unread_count_from_the_end(Dialog *d, MessageId m
} }
// hint_unread_count is definitely wrong, ignore it // hint_unread_count is definitely wrong, ignore it
LOG(ERROR) << "Receive hint_unread_count = " << hint_unread_count << ", but found " << unread_count if (d->order != 0) {
<< " unread messages in " << d->dialog_id; LOG(ERROR) << "Receive hint_unread_count = " << hint_unread_count << ", but found " << unread_count
<< " unread messages in " << d->dialog_id;
}
} }
if (!is_count_exact) { if (!is_count_exact) {