diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-08-10 00:20:44 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-08-10 00:20:44 +0200 |
commit | 376612e4eb39b1a5260745b901a3366d393511ee (patch) | |
tree | e86bed96026080c0cd7298a2a69f8daedb68e2db /src/timeline/RoomlistModel.cpp | |
parent | Change preview title for spaces (diff) | |
download | nheko-376612e4eb39b1a5260745b901a3366d393511ee.tar.xz |
Support editing space children
Diffstat (limited to '')
-rw-r--r-- | src/timeline/RoomlistModel.cpp | 7 |
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) { |