mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-11 22:23:49 +00:00
Open rich editor from Expand for quick reply edits.
This commit is contained in:
@@ -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),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user