mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 14:08:41 +00:00
Show gift on collectible status click.
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user