Get direct chat jdenticons to line up
This commit is contained in:
parent
7a200d7e77
commit
1fdecdcc21
6 changed files with 29 additions and 0 deletions
|
|
@ -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 {};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue