Added log to catch possible api errors when disable calls for account.

This commit is contained in:
23rd 2025-02-10 19:27:13 +03:00
parent 4b43f4cbec
commit fae9649773
2 changed files with 6 additions and 2 deletions

View file

@ -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