mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
Added debug logs for changing chats filters from context menu.
This commit is contained in:
parent
f4e2b4bcbd
commit
83df3cba66
1 changed files with 3 additions and 0 deletions
|
@ -96,6 +96,9 @@ void ChangeFilterById(
|
||||||
Ui::Text::WithEntities));
|
Ui::Text::WithEntities));
|
||||||
}
|
}
|
||||||
}).fail([=](const MTP::Error &error) {
|
}).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.
|
// Revert filter on fail.
|
||||||
history->owner().chatsFilters().set(was);
|
history->owner().chatsFilters().set(was);
|
||||||
}).send();
|
}).send();
|
||||||
|
|
Loading…
Add table
Reference in a new issue