mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
Make premium toast adaptive.
This commit is contained in:
parent
0a8e961142
commit
49ec051760
1 changed files with 4 additions and 2 deletions
|
@ -1427,8 +1427,10 @@ void SessionController::setupPremiumToast() {
|
|||
session().mtp().requestConfig();
|
||||
return premium;
|
||||
}) | rpl::start_with_next([=] {
|
||||
MainWindowShow(this).showToast(
|
||||
{ tr::lng_premium_success(tr::now) });
|
||||
MainWindowShow(this).showToast({
|
||||
.text = { tr::lng_premium_success(tr::now) },
|
||||
.adaptive = true,
|
||||
});
|
||||
}, _lifetime);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue