From 376612e4eb39b1a5260745b901a3366d393511ee Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Wed, 10 Aug 2022 00:20:44 +0200 Subject: Support editing space children --- src/timeline/RoomlistModel.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/timeline/RoomlistModel.cpp') 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>(e)) { + if (auto idx = roomidToIndex(qroomid); idx != -1) + emit dataChanged(index(idx), index(idx), {Tags}); + } + } } for (const auto &[room_id, room] : sync_.rooms.leave) { -- cgit 1.5.1