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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user