2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Show premium page on limit increase decision.

This commit is contained in:
John Preston
2022-05-20 17:12:56 +04:00
parent dc444ec22b
commit 5cd065ef6b
10 changed files with 42 additions and 24 deletions

View File

@@ -20,6 +20,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "history/history_item_components.h"
#include "apiwrap.h"
#include "storage/storage_account.h"
#include "settings/settings_premium.h"
#include "core/application.h"
#include "core/core_settings.h"
#include "main/main_session.h"
@@ -98,10 +99,7 @@ void MaybeShowPremiumToast(
const auto widget = QPointer<Ui::RpWidget>(
controller->window().widget()->bodyWidget());
const auto filter = [=](const auto ...) {
Ui::ShowMultilineToast({
.parentOverride = widget,
.text = { u"Premium!"_q },
});
controller->showSettings(Settings::PremiumId());
return false;
};
Ui::ShowMultilineToast({