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:
@@ -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({
|
||||
|
Reference in New Issue
Block a user