2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

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

@@ -88,10 +88,7 @@ EditInfoBox::EditInfoBox(
Core::App().settings().replaceEmojiValue());
_field->setMarkdownReplacesEnabled(rpl::single(true));
_field->setEditLinkCallback(
DefaultEditLinkCallback(
std::make_shared<Window::Show>(controller),
&controller->session(),
_field));
DefaultEditLinkCallback(controller->uiShow(), _field));
}
void EditInfoBox::prepare() {
@@ -495,9 +492,7 @@ void Helper::showEditInfoBox(
TextUtilities::ConvertTextTagsToEntities(result.tags)
}, done);
};
controller->show(
Box<EditInfoBox>(controller, editData, save),
Ui::LayerOption::KeepOther);
controller->show(Box<EditInfoBox>(controller, editData, save));
}
void Helper::saveInfo(