mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Show gift on collectible status click.
This commit is contained in:
@@ -1341,7 +1341,11 @@ void ShowGiftPremium(
|
|||||||
void ShowEmojiStatusPremium(
|
void ShowEmojiStatusPremium(
|
||||||
not_null<Window::SessionController*> controller,
|
not_null<Window::SessionController*> controller,
|
||||||
not_null<PeerData*> peer) {
|
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(
|
void StartPremiumPayment(
|
||||||
|
Reference in New Issue
Block a user