2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 09:05: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

@@ -11,7 +11,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "ui/ui_utility.h"
#include "ui/chat/chat_theme.h"
#include "ui/toasts/common_toasts.h"
#include "boxes/sticker_preview_box.h"
#include "boxes/premium_preview_box.h"
#include "data/data_peer.h"
#include "data/data_user.h"
#include "data/data_document.h"
@@ -355,7 +355,10 @@ bool ShowReactPremiumError(
if (i == end(list) || !i->premium) {
return false;
}
Settings::ShowPremium(controller, "unique_reactions");
ShowPremiumPreviewBox(
controller,
PremiumPreview::Reactions,
{});
return true;
}