2
0
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:
John Preston
2025-01-11 09:02:19 +04:00
parent 81001e04e9
commit 4e46529eb6

View File

@@ -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(