mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-11 11:47:09 +02:00
Added log to catch possible api errors when disable calls for account.
This commit is contained in:
parent
4b43f4cbec
commit
fae9649773
2 changed files with 6 additions and 2 deletions
|
@ -217,7 +217,11 @@ void Authorizations::toggleCallsDisabled(uint64 hash, bool disabled) {
|
|||
MTP_bool(disabled)
|
||||
)).done([=] {
|
||||
_toggleCallsDisabledRequests.remove(hash);
|
||||
}).fail([=] {
|
||||
}).fail([=](const MTP::Error &error) {
|
||||
LOG(("API Error: toggle calls %1. Hash: %2. %3.")
|
||||
.arg(disabled ? u"disabled"_q : u"enabled"_q)
|
||||
.arg(hash)
|
||||
.arg(error.type()));
|
||||
_toggleCallsDisabledRequests.remove(hash);
|
||||
}).send();
|
||||
_toggleCallsDisabledRequests.emplace(hash, id);
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit f6594068d4282aa84c51c7242d40213f3e0bf6f6
|
||||
Subproject commit 8809cc72d07087ec61a1e8569de4da95aac45474
|
Loading…
Add table
Reference in a new issue