mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-25 01:50:36 +00:00
Revert changes to notification replay. And replace user settings with Both (Enter and Ctrl+Enter) to polls.
This commit is contained in:
parent
9c562931a2
commit
4fececb94f
@ -767,7 +767,7 @@ not_null<Ui::InputField*> CreatePollBox::setupQuestion(
|
||||
st::createPollFieldPadding);
|
||||
InitField(getDelegate()->outerContainer(), question, _session);
|
||||
question->setMaxLength(kQuestionLimit + kErrorLimit);
|
||||
question->setSubmitSettings(_session->settings().sendSubmitWay());
|
||||
question->setSubmitSettings(Ui::InputField::SubmitSettings::Both);
|
||||
|
||||
const auto warning = CreateWarningLabel(
|
||||
container,
|
||||
|
@ -858,7 +858,7 @@ void Notification::showReplyField() {
|
||||
_replyArea->show();
|
||||
_replyArea->setFocus();
|
||||
_replyArea->setMaxLength(MaxMessageSize);
|
||||
_replyArea->setSubmitSettings(_item->history()->session().settings().sendSubmitWay());
|
||||
_replyArea->setSubmitSettings(Ui::InputField::SubmitSettings::Both);
|
||||
_replyArea->setInstantReplaces(Ui::InstantReplaces::Default());
|
||||
_replyArea->setInstantReplacesEnabled(
|
||||
_item->history()->session().settings().replaceEmojiValue());
|
||||
|
Loading…
Reference in New Issue
Block a user