Fix two cases of usernames containing html being rendered wrong

This commit is contained in:
Tobias Fella
2022-10-27 21:01:47 +02:00
parent c377534b62
commit a4c26371d6
2 changed files with 2 additions and 1 deletions

View File

@@ -228,7 +228,7 @@ bool NeoChatRoom::lastEventIsSpoiler() const
QString NeoChatRoom::lastEventToString() const
{
if (auto event = lastEvent()) {
return htmlSafeMemberName(event->senderId()) + (event->isStateEvent() ? " " : ": ") + eventToString(*event);
return memberName(event->senderId()) + (event->isStateEvent() ? " " : ": ") + eventToString(*event);
}
return QLatin1String("");
}