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

Show premium stickers toast on double click.

This commit is contained in:
John Preston
2022-05-26 12:30:50 +04:00
parent e5d95c0ab0
commit be16a7725c
11 changed files with 224 additions and 10 deletions

View File

@@ -3232,8 +3232,13 @@ void HistoryInner::elementStartInteraction(not_null<const Element*> view) {
void HistoryInner::elementStartPremium(
not_null<const Element*> view,
Element *replacing) {
_emojiInteractions->playPremiumEffect(view, replacing);
const auto already = !_emojiInteractions->playPremiumEffect(
view,
replacing);
_animatedStickersPlayed.emplace(view->data());
if (already) {
_widget->showPremiumStickerTooltip(view);
}
}
void HistoryInner::elementCancelPremium(not_null<const Element*> view) {