mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
Removed unused MTP::Error from callbacks on fail.
This commit is contained in:
@@ -263,7 +263,7 @@ Helper::Helper(not_null<Main::Session*> session)
|
||||
result.match([&](const MTPDhelp_supportName &data) {
|
||||
setSupportName(qs(data.vname()));
|
||||
});
|
||||
}).fail([=](const MTP::Error &error) {
|
||||
}).fail([=] {
|
||||
setSupportName(
|
||||
qsl("[rand^")
|
||||
+ QString::number(Core::Sandbox::Instance().installationTag())
|
||||
@@ -529,7 +529,7 @@ void Helper::saveInfo(
|
||||
)).done([=](const MTPhelp_UserInfo &result) {
|
||||
applyInfo(user, result);
|
||||
done(true);
|
||||
}).fail([=](const MTP::Error &error) {
|
||||
}).fail([=] {
|
||||
done(false);
|
||||
}).send();
|
||||
}
|
||||
|
Reference in New Issue
Block a user