Fix two (edited) strings appearing in edited quotes

This is because we only check if the last message component != Text,
because that handles it's own edit strings. Quote components do that
too, so if we don't exclude it there ends up being two (edited) strings
in one message.
This commit is contained in:
Joshua Goins
2025-04-12 16:59:49 -04:00
parent 1e26e740fb
commit 5ef4ab0756

View File

@@ -599,7 +599,7 @@ TextHandler::textComponents(QString string, Qt::TextFormat inputFormat, const Ne
}
}
if (isEdited && components.last().type != MessageComponentType::Text) {
if (isEdited && components.last().type != MessageComponentType::Text && components.last().type != MessageComponentType::Quote) {
components += MessageComponent{MessageComponentType::Text, editString(), {}};
}