mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 15:04:57 +00:00
Show nice gift burned error everywhere.
This commit is contained in:
@@ -484,7 +484,9 @@ void TransferGift(
|
||||
ShowTransferGiftLater(strong->uiShow(), gift);
|
||||
}
|
||||
} else if (const auto strong = weak.get()) {
|
||||
strong->showToast(error.type());
|
||||
if (!Ui::ShowGiftErrorToast(strong->uiShow(), error)) {
|
||||
strong->showToast(type);
|
||||
}
|
||||
}
|
||||
}).send();
|
||||
} else {
|
||||
@@ -512,7 +514,9 @@ void ResolveGiftSaleOffer(
|
||||
session->api().applyUpdates(result);
|
||||
done(true);
|
||||
}).fail([=](const MTP::Error &error) {
|
||||
show->showToast(error.type());
|
||||
if (!Ui::ShowGiftErrorToast(show, error)) {
|
||||
show->showToast(error.type());
|
||||
}
|
||||
done(false);
|
||||
}).send();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user