mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
Removed unused MTP::Error from callbacks on fail.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user