From 7d6faaafeaaa37f0bf65afee2b9d8526b1e1e1d0 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Mon, 4 Oct 2021 15:55:46 +0200 Subject: [PATCH] More HTML safety in statedelegates --- src/neochatroom.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/neochatroom.cpp b/src/neochatroom.cpp index 285657586..b4f843610 100644 --- a/src/neochatroom.cpp +++ b/src/neochatroom.cpp @@ -371,7 +371,7 @@ QString NeoChatRoom::eventToString(const RoomEvent &evt, Qt::TextFormat format, }, [this](const RoomMemberEvent &e) { // FIXME: Rewind to the name that was at the time of this event - auto subjectName = this->user(e.userId())->displayname(); + auto subjectName = this->htmlSafeMemberName(e.userId()); // The below code assumes senderName output in AuthorRole switch (e.membership()) { case MembershipType::Invite: