2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-03 08:05:12 +00:00

Add a comment field to ShareBox.

This commit is contained in:
John Preston
2018-11-04 11:32:26 +04:00
parent 65b2db2160
commit 5f665b8ecb
8 changed files with 369 additions and 250 deletions

View File

@@ -279,7 +279,6 @@ Fn<bool(
QString text,
QString link,
EditLinkAction action)> DefaultEditLinkCallback(
not_null<Window::Controller*> controller,
not_null<Ui::InputField*> field) {
const auto weak = make_weak(field);
return [=](
@@ -318,8 +317,7 @@ void InitMessageField(
field->setInstantReplaces(Ui::InstantReplaces::Default());
field->setInstantReplacesEnabled(Global::ReplaceEmojiValue());
field->setMarkdownReplacesEnabled(rpl::single(true));
field->setEditLinkCallback(
DefaultEditLinkCallback(controller, field));
field->setEditLinkCallback(DefaultEditLinkCallback(field));
}
bool HasSendText(not_null<const Ui::InputField*> field) {