mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Added ability to use EditLinkBox without SessionController.
This commit is contained in:
@@ -87,7 +87,11 @@ EditInfoBox::EditInfoBox(
|
||||
_field->setInstantReplacesEnabled(
|
||||
Core::App().settings().replaceEmojiValue());
|
||||
_field->setMarkdownReplacesEnabled(rpl::single(true));
|
||||
_field->setEditLinkCallback(DefaultEditLinkCallback(controller, _field));
|
||||
_field->setEditLinkCallback(
|
||||
DefaultEditLinkCallback(
|
||||
std::make_shared<Window::Show>(controller),
|
||||
&controller->session(),
|
||||
_field));
|
||||
}
|
||||
|
||||
void EditInfoBox::prepare() {
|
||||
|
Reference in New Issue
Block a user