2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Removed unused MTP::Error from callbacks on fail.

This commit is contained in:
23rd
2021-11-26 23:46:53 +03:00
committed by John Preston
parent 287a35d208
commit 3647241f71
62 changed files with 158 additions and 182 deletions

View File

@@ -332,7 +332,7 @@ void Instance::refreshDhConfig() {
} else {
_delegate->callFailed(call);
}
}).fail([=](const MTP::Error &error) {
}).fail([=] {
const auto call = weak.get();
if (!call) {
return;
@@ -391,7 +391,7 @@ void Instance::refreshServerConfig(not_null<Main::Session*> session) {
const auto &json = result.c_dataJSON().vdata().v;
UpdateConfig(std::string(json.data(), json.size()));
}).fail([=](const MTP::Error &error) {
}).fail([=] {
_serverConfigRequestSession = nullptr;
}).send();
}