Detach ComposeControls from SessionController.

This commit is contained in:
John Preston
2023-05-02 13:33:19 +04:00
parent 665467b02d
commit 65afa2c402
178 changed files with 2080 additions and 1869 deletions

View File

@@ -23,6 +23,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "ui/boxes/confirm_box.h"
#include "boxes/phone_banned_box.h"
#include "core/application.h"
#include "window/window_controller.h"
#include "window/window_session_controller.h"
#include "countries/countries_instance.h" // Countries::Groups
@@ -46,7 +47,7 @@ PhoneWidget::PhoneWidget(
: Step(parent, account, data)
, _country(
this,
std::make_shared<Window::Show>(getData()->controller),
getData()->controller->uiShow(),
st::introCountry)
, _code(this, st::introCountryCode)
, _phone(