More HTML safety in statedelegates

This commit is contained in:
Tobias Fella
2021-10-04 15:55:46 +02:00
parent 4e26dc5d57
commit 7d6faaafea

View File

@@ -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: