2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Handle today-birthday click in profile.

This commit is contained in:
John Preston
2024-03-29 18:59:24 +04:00
parent 20123fca7f
commit d788f5afac
7 changed files with 150 additions and 14 deletions

View File

@@ -1346,6 +1346,12 @@ void SessionController::showGiftPremiumsBox(const QString &ref) {
_giftPremiumValidator.showChoosePeerBox(ref);
}
void SessionController::showGiftPremiumsBox(
not_null<UserData*> user,
const QString &ref) {
_giftPremiumValidator.showChosenPeerBox(user, ref);
}
void SessionController::init() {
if (session().supportMode()) {
session().supportHelper().registerWindow(this);

View File

@@ -395,6 +395,9 @@ public:
void showGiftPremiumBox(UserData *user);
void showGiftPremiumsBox(const QString &ref);
// Single user gift as if was selected in multiple recipients chooser.
void showGiftPremiumsBox(not_null<UserData*> user, const QString &ref);
void enableGifPauseReason(GifPauseReason reason);
void disableGifPauseReason(GifPauseReason reason);
rpl::producer<> gifPauseLevelChanged() const {