From 83df3cba66f32921c82a33bb77ddab1401d76810 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Sun, 17 Nov 2024 12:23:32 +0300 Subject: [PATCH] Added debug logs for changing chats filters from context menu. --- Telegram/SourceFiles/boxes/choose_filter_box.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Telegram/SourceFiles/boxes/choose_filter_box.cpp b/Telegram/SourceFiles/boxes/choose_filter_box.cpp index 4e99a01ba..252403af8 100644 --- a/Telegram/SourceFiles/boxes/choose_filter_box.cpp +++ b/Telegram/SourceFiles/boxes/choose_filter_box.cpp @@ -96,6 +96,9 @@ void ChangeFilterById( Ui::Text::WithEntities)); } }).fail([=](const MTP::Error &error) { + LOG(("API Error: failed to %1 a dialog to a folder. %2") + .arg(add ? u"add"_q : u"remove"_q) + .arg(error.type())); // Revert filter on fail. history->owner().chatsFilters().set(was); }).send();