summary refs log tree commit diff
path: root/src/timeline/RoomlistModel.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-08-10 00:20:44 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2022-08-10 00:20:44 +0200
commit376612e4eb39b1a5260745b901a3366d393511ee (patch)
treee86bed96026080c0cd7298a2a69f8daedb68e2db /src/timeline/RoomlistModel.cpp
parentChange preview title for spaces (diff)
downloadnheko-376612e4eb39b1a5260745b901a3366d393511ee.tar.xz
Support editing space children
Diffstat (limited to '')
-rw-r--r--src/timeline/RoomlistModel.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/timeline/RoomlistModel.cpp b/src/timeline/RoomlistModel.cpp
index fe4e7850..03abd3d5 100644
--- a/src/timeline/RoomlistModel.cpp
+++ b/src/timeline/RoomlistModel.cpp
@@ -546,6 +546,13 @@ RoomlistModel::sync(const mtx::responses::Sync &sync_)
                 }
             }
         }
+        for (const auto &e : room.account_data.events) {
+            if (std::holds_alternative<
+                  mtx::events::AccountDataEvent<mtx::events::account_data::Tags>>(e)) {
+                if (auto idx = roomidToIndex(qroomid); idx != -1)
+                    emit dataChanged(index(idx), index(idx), {Tags});
+            }
+        }
     }
 
     for (const auto &[room_id, room] : sync_.rooms.leave) {