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

Allow sending premium emoji to Saved Messages.

This commit is contained in:
John Preston
2022-08-01 16:24:51 +03:00
parent 087074fea4
commit b42f2784ab
18 changed files with 93 additions and 39 deletions

View File

@@ -422,13 +422,14 @@ void StickerSetBox::updateButtons() {
if (!_controller->session().premium()
&& _controller->session().premiumPossible()
&& _inner->premiumEmojiSet()) {
setStyle(st::premiumPreviewBox);
const auto &st = st::premiumPreviewDoubledLimitsBox;
setStyle(st);
auto button = CreateUnlockButton(
this,
tr::lng_premium_unlock_emoji());
button->resizeToWidth(st::boxWideWidth
- st::premiumPreviewBox.buttonPadding.left()
- st::premiumPreviewBox.buttonPadding.left());
- st.buttonPadding.left()
- st.buttonPadding.left());
button->setClickedCallback([=] {
Settings::ShowPremium(_controller, u"animated_emoji"_q);
});