Fix HTML escaping

This commit is contained in:
Tobias Fella
2021-09-24 12:44:32 +02:00
parent d28279313d
commit 7c7d296981
4 changed files with 18 additions and 2 deletions

View File

@@ -329,7 +329,7 @@ QVariant RoomListModel::data(const QModelIndex &index, int role) const
}
NeoChatRoom *room = m_rooms.at(index.row());
if (role == NameRole) {
return !room->name().isEmpty() ? room->name() : room->displayName();
return !room->name().isEmpty() ? room->htmlSafeName() : room->htmlSafeDisplayName();
}
if (role == DisplayNameRole) {
return room->displayName();