Implement space stickers & emoji

This commit is contained in:
Nicolas Werner 2022-09-01 13:25:11 +02:00
parent 01fd5e6b61
commit e144c5741f
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
7 changed files with 46 additions and 10 deletions

View file

@ -36,6 +36,7 @@ ImagePackListModel::roleNames() const
{Roles::AvatarUrl, "avatarUrl"},
{Roles::FromAccountData, "fromAccountData"},
{Roles::FromCurrentRoom, "fromCurrentRoom"},
{Roles::FromSpace, "fromSpace"},
{Roles::StateKey, "statekey"},
{Roles::RoomId, "roomid"},
};
@ -55,6 +56,8 @@ ImagePackListModel::data(const QModelIndex &index, int role) const
return pack->roomid().isEmpty();
case Roles::FromCurrentRoom:
return pack->roomid().toStdString() == this->room_id;
case Roles::FromSpace:
return pack->fromSpace();
case Roles::StateKey:
return pack->statekey();
case Roles::RoomId: