Properly set pack avatar

fixes #1480
This commit is contained in:
Nicolas Werner 2023-06-09 23:22:44 +02:00
parent 2d7c007eb2
commit c7b78ca182
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -108,6 +108,8 @@ GridImagePackModel::GridImagePackModel(const std::string &roomId, bool stickers,
PackDesc newPack{}; PackDesc newPack{};
newPack.packname = newPack.packname =
pack.pack.pack ? QString::fromStdString(pack.pack.pack->display_name) : QString(); pack.pack.pack ? QString::fromStdString(pack.pack.pack->display_name) : QString();
newPack.packavatar =
pack.pack.pack ? QString::fromStdString(pack.pack.pack->avatar_url) : QString();
newPack.room_id = pack.source_room; newPack.room_id = pack.source_room;
newPack.state_key = pack.state_key; newPack.state_key = pack.state_key;