Force RoomListDelegate to use plaintext
Text.AutoText isn't robust enough to handle this
This commit is contained in:
@@ -236,6 +236,7 @@ Kirigami.ScrollablePage {
|
|||||||
Keys.onReturnPressed: enterRoomAction.trigger()
|
Keys.onReturnPressed: enterRoomAction.trigger()
|
||||||
bold: unreadCount > 0
|
bold: unreadCount > 0
|
||||||
label: name ?? ""
|
label: name ?? ""
|
||||||
|
labelItem.textFormat: Text.PlainText
|
||||||
subtitle: {
|
subtitle: {
|
||||||
const txt = (lastEvent.length === 0 ? topic : lastEvent).replace(/(\r\n\t|\n|\r\t)/gm, " ")
|
const txt = (lastEvent.length === 0 ? topic : lastEvent).replace(/(\r\n\t|\n|\r\t)/gm, " ")
|
||||||
if (txt.length) {
|
if (txt.length) {
|
||||||
|
|||||||
@@ -329,7 +329,7 @@ QVariant RoomListModel::data(const QModelIndex &index, int role) const
|
|||||||
}
|
}
|
||||||
NeoChatRoom *room = m_rooms.at(index.row());
|
NeoChatRoom *room = m_rooms.at(index.row());
|
||||||
if (role == NameRole) {
|
if (role == NameRole) {
|
||||||
return !room->name().isEmpty() ? room->htmlSafeName() : room->htmlSafeDisplayName();
|
return !room->name().isEmpty() ? room->name() : room->displayName();
|
||||||
}
|
}
|
||||||
if (role == DisplayNameRole) {
|
if (role == DisplayNameRole) {
|
||||||
return room->displayName();
|
return room->displayName();
|
||||||
|
|||||||
Reference in New Issue
Block a user