Open rich editor from Expand for quick reply edits.

This commit is contained in:
John Preston
2026-07-19 01:37:29 +04:00
parent 9d00f110f0
commit 04e56c22e2
2 changed files with 4 additions and 2 deletions
@@ -3799,7 +3799,7 @@ void ComposeControls::initExpandButton() {
}
return;
}
if (_mode != Mode::Normal) {
if (_mode != Mode::Normal || !hasRichDraftThreadScope()) {
return;
}
Iv::Editor::ShowComposeBox(
@@ -4181,7 +4181,8 @@ void ComposeControls::updateExpandButtonVisibility() {
const auto hidden = !_wrap->isVisible()
|| _recording.current()
|| !_field->isVisible()
|| (_mode != Mode::Normal && !isEditingMessage())
|| ((_mode != Mode::Normal || !hasRichDraftThreadScope())
&& !isEditingMessage())
|| !hasEnoughLinesForExpand()
|| textExceedsMaxSize()
|| (media && !media->webpage())
@@ -649,6 +649,7 @@ void ShortcutMessages::setupComposeControls() {
});
_composeControls->setHistory({
.history = _history.get(),
.sendActionFactory = [=] { return prepareSendAction({}); },
.writeRestriction = std::move(writeRestriction),
});