bugfix
This commit is contained in:
1 parent
6ff0260e8d
commit
a55065b1de
1 file changed
+2
-3
@@ -62,12 +62,12 @@ const getHierarchySpaces = (
|
||||
spaceItems.push(spaceItem);
|
||||
|
||||
if (!space) return;
|
||||
const childEvents = getStateEvents(space, StateEvent.SpaceChild);
|
||||
childEvents
|
||||
const childEvents = getStateEvents(space, StateEvent.SpaceChild)
|
||||
.filter((childEvent) => {
|
||||
if (!isValidChild(childEvent)) return false;
|
||||
const childId = childEvent.getStateKey();
|
||||
if (!childId || !isRoomId(childId)) return false;
|
||||
if (excludeRoom(spaceItem.roomId, childId)) return false;
|
||||
|
||||
// because we can not find if a childId is space without joining
|
||||
// or requesting room summary, we will look it into spaceRooms local
|
||||
@@ -80,7 +80,6 @@ const getHierarchySpaces = (
|
||||
childEvents.forEach((childEvent) => {
|
||||
const childId = childEvent.getStateKey();
|
||||
if (!childId || !isRoomId(childId)) return;
|
||||
if (excludeRoom(spaceItem.roomId, childId)) return;
|
||||
|
||||
const childItem: HierarchyItemSpace = {
|
||||
roomId: childId,
|
||||
|
||||
Reference in new issue
Block a user