From 6da8565b7b99109099c038452dd0b31b7ba911c8 Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 11 Mar 2019 15:15:57 +0300 Subject: [PATCH] Add CHECK debug. GitOrigin-RevId: c967e0cd0270200c9202afbc98ec8270664a9211 --- td/telegram/MessagesManager.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index 0b520c009..7b8c222db 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -18141,7 +18141,11 @@ MessagesManager::MessageNotificationGroup MessagesManager::get_message_notificat if (d == nullptr) { return MessageNotificationGroup(); } - CHECK(d->message_notification_group.group_id == group_id || d->mention_notification_group.group_id == group_id); + LOG_CHECK(d->message_notification_group.group_id == group_id || d->mention_notification_group.group_id == group_id) + << group_id << " " << d->message_notification_group.group_id << " " << d->mention_notification_group.group_id + << " " << d->dialog_id << " " << notification_group_id_to_dialog_id_[group_id] << " " + << notification_group_id_to_dialog_id_[d->message_notification_group.group_id] << " " + << notification_group_id_to_dialog_id_[d->mention_notification_group.group_id]; bool from_mentions = d->mention_notification_group.group_id == group_id; auto &group_info = from_mentions ? d->mention_notification_group : d->message_notification_group;