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 "data/data_cloud_themes.h"
#include "data/data_message_reactions.h"
#include "history/history_item.h"
#include "settings/settings_premium.h"
#include "main/main_session.h"
#include "window/section_memento.h"
#include "window/window_slide_animation.h"
@@ -353,9 +354,7 @@ bool ShowReactPremiumError(
if (i == end(list) || !i->premium) {
return false;
}
Ui::ShowMultilineToast({
.text = { u"Premium reaction."_q },
});
Settings::ShowPremium(&controller->session());
return true;
}