mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Show gift on collectible status click.
This commit is contained in:
parent
81001e04e9
commit
4e46529eb6
1 changed files with 5 additions and 1 deletions
|
@ -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(
|
||||||
|
|
Loading…
Add table
Reference in a new issue