diff --git a/imports/NeoChat/Page/RoomListPage.qml b/imports/NeoChat/Page/RoomListPage.qml index 0447e40c7..fd896e7a5 100644 --- a/imports/NeoChat/Page/RoomListPage.qml +++ b/imports/NeoChat/Page/RoomListPage.qml @@ -236,6 +236,7 @@ Kirigami.ScrollablePage { Keys.onReturnPressed: enterRoomAction.trigger() bold: unreadCount > 0 label: name ?? "" + labelItem.textFormat: Text.PlainText subtitle: { const txt = (lastEvent.length === 0 ? topic : lastEvent).replace(/(\r\n\t|\n|\r\t)/gm, " ") if (txt.length) { diff --git a/src/roomlistmodel.cpp b/src/roomlistmodel.cpp index 18b04e8de..8089bdd26 100644 --- a/src/roomlistmodel.cpp +++ b/src/roomlistmodel.cpp @@ -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->htmlSafeName() : room->htmlSafeDisplayName(); + return !room->name().isEmpty() ? room->name() : room->displayName(); } if (role == DisplayNameRole) { return room->displayName();