summary refs log tree commit diff
path: root/src/timeline/RoomlistModel.cpp
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2021-08-13 20:05:26 -0400
committerLoren Burkholder <computersemiexpert@outlook.com>2021-09-11 19:35:31 -0400
commit1fdecdcc213fe91711649243a315ebd11809f0f9 (patch)
tree7b7427123ba2770939851ebde89ec21ef682e432 /src/timeline/RoomlistModel.cpp
parentAdd licenses (diff)
downloadnheko-1fdecdcc213fe91711649243a315ebd11809f0f9.tar.xz
Get direct chat jdenticons to line up
Diffstat (limited to 'src/timeline/RoomlistModel.cpp')
-rw-r--r--src/timeline/RoomlistModel.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/timeline/RoomlistModel.cpp b/src/timeline/RoomlistModel.cpp

index 942a4b05..88411236 100644 --- a/src/timeline/RoomlistModel.cpp +++ b/src/timeline/RoomlistModel.cpp
@@ -76,6 +76,8 @@ RoomlistModel::roleNames() const {IsSpace, "isSpace"}, {Tags, "tags"}, {ParentSpaces, "parentSpaces"}, + {RoomMemberCount, "roomMemberCount"}, + {DirectChatAvatarMxid, "directChatAvatarMxid"}, }; } @@ -129,6 +131,10 @@ RoomlistModel::data(const QModelIndex &index, int role) const list.push_back(QString::fromStdString(t)); return list; } + case Roles::RoomMemberCount: + return room->roomMemberCount(); + case Roles::DirectChatAvatarMxid: + return room->directChatAvatarMxid(); default: return {}; }