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.
(cherry picked from commit 5ef4ab0756)
This commit is contained in:
committed by
Tobias Fella
parent
f642b1488a
commit
a1c213dc46
@@ -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