2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-02 07:35:12 +00:00

Support tg://premium_multigift links.

This commit is contained in:
John Preston
2024-01-02 00:10:52 +04:00
parent a30d0eccda
commit a4d7309209
6 changed files with 30 additions and 10 deletions

View File

@@ -427,7 +427,7 @@ void SetupPremium(
{ .icon = &st::menuIconGiftPremium }
);
button->addClickHandler([=] {
controller->showGiftPremiumsBox();
controller->showGiftPremiumsBox(u"gift"_q);
});
constexpr auto kNewExpiresAt = int(1735689600);
if (base::unixtime::now() < kNewExpiresAt) {