Show nice gift burned error everywhere.

This commit is contained in:
John Preston
2026-02-24 14:14:22 +04:00
parent efc31d6e58
commit 2aae67cb81
8 changed files with 68 additions and 19 deletions
@@ -215,7 +215,9 @@ void ToggleStarGiftSaved(
if (const auto onstack = done) {
onstack(false);
}
show->showToast(error.type());
if (!Ui::ShowGiftErrorToast(show, error)) {
show->showToast(error.type());
}
}).send();
}
@@ -271,7 +273,9 @@ void ConvertStarGift(
tr::rich));
done(true);
}).fail([=](const MTP::Error &error) {
show->showToast(error.type());
if (!Ui::ShowGiftErrorToast(show, error)) {
show->showToast(error.type());
}
done(false);
}).send();
}