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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user