Get direct chat jdenticons to line up

This commit is contained in:
Loren Burkholder 2021-08-13 20:05:26 -04:00
parent 7a200d7e77
commit 1fdecdcc21
6 changed files with 29 additions and 0 deletions

View file

@ -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 {};
}