mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 05:58:38 +00:00
Show gift on collectible status click.
This commit is contained in:
parent
81001e04e9
commit
4e46529eb6
@ -1341,7 +1341,11 @@ void ShowGiftPremium(
|
||||
void ShowEmojiStatusPremium(
|
||||
not_null<Window::SessionController*> controller,
|
||||
not_null<PeerData*> peer) {
|
||||
ShowPremium(controller, Ref::EmojiStatus::Serialize({ peer->id }));
|
||||
if (const auto unique = peer->emojiStatusId().collectible.get()) {
|
||||
Core::ResolveAndShowUniqueGift(controller->uiShow(), unique->slug);
|
||||
} else {
|
||||
ShowPremium(controller, Ref::EmojiStatus::Serialize({ peer->id }));
|
||||
}
|
||||
}
|
||||
|
||||
void StartPremiumPayment(
|
||||
|
Loading…
x
Reference in New Issue
Block a user