");
- htmlBody.insert(firstPara == -1 ? 0 : firstPara + 3,
- "* "
- + author->displayname(this) + " ");
- }
return htmlBody;
}
@@ -501,18 +494,14 @@ QString NeoChatRoom::eventToString(const RoomEvent &evt, Qt::TextFormat format,
plainBody = e.plainBody();
}
- if (removeReply) {
- plainBody = plainBody.remove(utils::removeReplyRegex);
- }
if (prettyPrint) {
- plainBody = Quotient::prettyPrint(plainBody);
+ if (removeReply) {
+ plainBody.remove(utils::removeReplyRegex);
+ }
+ return Quotient::prettyPrint(plainBody);
}
- if (e.msgtype() == MessageEventType::Emote) {
- auto author = static_cast