Use plaintext in devtools room selection combo

This commit is contained in:
Tobias Fella
2024-03-02 19:36:46 +01:00
parent 1249304907
commit bdf192df58
3 changed files with 7 additions and 1 deletions

View File

@@ -208,6 +208,9 @@ QVariant RoomListModel::data(const QModelIndex &index, int role) const
if (role == DisplayNameRole) {
return room->displayName();
}
if (role == EscapedDisplayNameRole) {
return room->displayName().toHtmlEscaped();
}
if (role == AvatarRole) {
return room->avatarMediaId();
}
@@ -282,6 +285,7 @@ QHash<int, QByteArray> RoomListModel::roleNames() const
{
QHash<int, QByteArray> roles;
roles[DisplayNameRole] = "displayName";
roles[EscapedDisplayNameRole] = "escapedDisplayName";
roles[AvatarRole] = "avatar";
roles[CanonicalAliasRole] = "canonicalAlias";
roles[TopicRole] = "topic";