Fix crash in link preview edit.
This commit is contained in:
parent
8ebf329cd9
commit
b41c94be29
|
@ -638,10 +638,11 @@ void DraftOptionsBox(
|
||||||
const auto &highlight = args.highlight;
|
const auto &highlight = args.highlight;
|
||||||
const auto &clearOldDraft = args.clearOldDraft;
|
const auto &clearOldDraft = args.clearOldDraft;
|
||||||
const auto resolveReply = [=] {
|
const auto resolveReply = [=] {
|
||||||
const auto current = state->quote.current();
|
|
||||||
auto result = draft.reply;
|
auto result = draft.reply;
|
||||||
result.messageId = current.item->fullId();
|
if (const auto current = state->quote.current()) {
|
||||||
result.quote = current.text;
|
result.messageId = current.item->fullId();
|
||||||
|
result.quote = current.text;
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
const auto finish = [=](
|
const auto finish = [=](
|
||||||
|
|
Loading…
Reference in New Issue