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:
@@ -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(), {}};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user