Only hide replaced rooms if we're joined to the replacement room

This commit is contained in:
Tobias Fella
2023-10-17 22:05:20 +02:00
parent 4449678b74
commit d4b4a7e1ff
3 changed files with 12 additions and 1 deletions

View File

@@ -368,6 +368,9 @@ QVariant RoomListModel::data(const QModelIndex &index, int role) const
if (role == IsChildSpaceRole) {
return SpaceHierarchyCache::instance().isChildSpace(room->id());
}
if (role == ReplacementIdRole) {
return room->successorId();
}
return QVariant();
}