2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-10-19 14:26:55 +00:00

Move gift_credits_box -> star_gift_box, strip old code.

This commit is contained in:
John Preston
2024-09-30 12:08:22 +04:00
parent 3e63b40564
commit d361d5f3b2
13 changed files with 33 additions and 881 deletions

View File

@@ -1245,8 +1245,7 @@ SessionController::SessionController(
, _activeChatsFilter(session->data().chatsFilters().defaultId())
, _openedFolder(window->id().folder())
, _defaultChatTheme(std::make_shared<Ui::ChatTheme>())
, _chatStyle(std::make_unique<Ui::ChatStyle>(session->colorIndicesValue()))
, _giftPremiumValidator(this) {
, _chatStyle(std::make_unique<Ui::ChatStyle>(session->colorIndicesValue())) {
init();
_chatStyleTheme = _defaultChatTheme;
@@ -1470,24 +1469,6 @@ void SessionController::showEditPeerBox(PeerData *peer) {
session().api().requestFullPeer(peer);
}
void SessionController::showGiftPremiumBox(UserData *user) {
if (user) {
_giftPremiumValidator.showBox(user);
} else {
_giftPremiumValidator.cancel();
}
}
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);