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

Introduce premium reactions preview box.

This commit is contained in:
John Preston
2022-05-27 19:42:05 +04:00
parent 1a2a65ff19
commit 2362d6c6fb
12 changed files with 832 additions and 332 deletions

View File

@@ -20,6 +20,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "history/view/history_view_react_button.h" // DefaultIconFactory
#include "lang/lang_keys.h"
#include "lottie/lottie_icon.h"
#include "boxes/premium_preview_box.h"
#include "main/main_session.h"
#include "settings/settings_common.h"
#include "settings/settings_premium.h"
@@ -448,7 +449,9 @@ void ReactionsSettingsBox(
button->setClickedCallback([=, emoji = r.emoji] {
if (premium && !controller->session().premium()) {
Settings::ShowPremium(controller, "unique_reactions");
ShowPremiumPreviewBox(
controller,
PremiumPreview::Reactions);
return;
}
checkButton(button);