summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-06-09 23:22:44 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2023-06-09 23:22:44 +0200
commitc7b78ca1825c597278df827269dd78437eb44ba2 (patch)
tree2f984ca7122f0108666d05b2ee5b008f17b9b9dd
parentFix binding loop in roomlist (diff)
downloadnheko-c7b78ca1825c597278df827269dd78437eb44ba2.tar.xz
Properly set pack avatar
fixes #1480
-rw-r--r--src/GridImagePackModel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/GridImagePackModel.cpp b/src/GridImagePackModel.cpp
index 2d5960a4..cfd014f0 100644
--- a/src/GridImagePackModel.cpp
+++ b/src/GridImagePackModel.cpp
@@ -108,6 +108,8 @@ GridImagePackModel::GridImagePackModel(const std::string &roomId, bool stickers,
         PackDesc newPack{};
         newPack.packname =
           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.state_key = pack.state_key;