Improve error messages.
GitOrigin-RevId: 054f148623cdf23b05c9594ed27d532b42420877
This commit is contained in:
parent
c3ede7ac23
commit
0e0b7d1bb7
@ -24705,7 +24705,8 @@ void MessagesManager::send_update_unread_message_count(DialogList &list, DialogI
|
|||||||
auto dialog_list_id = list.dialog_list_id;
|
auto dialog_list_id = list.dialog_list_id;
|
||||||
CHECK(list.is_message_unread_count_inited_);
|
CHECK(list.is_message_unread_count_inited_);
|
||||||
if (list.unread_message_muted_count_ < 0 || list.unread_message_muted_count_ > list.unread_message_total_count_) {
|
if (list.unread_message_muted_count_ < 0 || list.unread_message_muted_count_ > list.unread_message_total_count_) {
|
||||||
LOG(ERROR) << "Unread message count became invalid: " << list.unread_message_total_count_ << '/'
|
LOG(ERROR) << "Unread message count became invalid in " << dialog_list_id << ": "
|
||||||
|
<< list.unread_message_total_count_ << '/'
|
||||||
<< list.unread_message_total_count_ - list.unread_message_muted_count_ << " from " << source << " and "
|
<< list.unread_message_total_count_ - list.unread_message_muted_count_ << " from " << source << " and "
|
||||||
<< dialog_id;
|
<< dialog_id;
|
||||||
if (list.unread_message_muted_count_ < 0) {
|
if (list.unread_message_muted_count_ < 0) {
|
||||||
@ -24748,8 +24749,8 @@ void MessagesManager::send_update_unread_chat_count(DialogList &list, DialogId d
|
|||||||
list.unread_dialog_muted_count_ < list.unread_dialog_muted_marked_count_ ||
|
list.unread_dialog_muted_count_ < list.unread_dialog_muted_marked_count_ ||
|
||||||
list.unread_dialog_total_count_ + list.unread_dialog_muted_marked_count_ <
|
list.unread_dialog_total_count_ + list.unread_dialog_muted_marked_count_ <
|
||||||
list.unread_dialog_muted_count_ + list.unread_dialog_marked_count_) {
|
list.unread_dialog_muted_count_ + list.unread_dialog_marked_count_) {
|
||||||
LOG(ERROR) << "Unread chat count became invalid: " << list.unread_dialog_total_count_ << '/'
|
LOG(ERROR) << "Unread chat count became invalid in " << dialog_list_id << ": " << list.unread_dialog_total_count_
|
||||||
<< list.unread_dialog_total_count_ - list.unread_dialog_muted_count_ << '/'
|
<< '/' << list.unread_dialog_total_count_ - list.unread_dialog_muted_count_ << '/'
|
||||||
<< list.unread_dialog_marked_count_ << '/'
|
<< list.unread_dialog_marked_count_ << '/'
|
||||||
<< list.unread_dialog_marked_count_ - list.unread_dialog_muted_marked_count_ << " from " << source
|
<< list.unread_dialog_marked_count_ - list.unread_dialog_muted_marked_count_ << " from " << source
|
||||||
<< " and " << dialog_id;
|
<< " and " << dialog_id;
|
||||||
|
Loading…
Reference in New Issue
Block a user