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