mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-04 14:30:29 +03:00
bugfix
This commit is contained in:
parent
6ff0260e8d
commit
a55065b1de
1 changed files with 2 additions and 3 deletions
|
|
@ -62,12 +62,12 @@ const getHierarchySpaces = (
|
||||||
spaceItems.push(spaceItem);
|
spaceItems.push(spaceItem);
|
||||||
|
|
||||||
if (!space) return;
|
if (!space) return;
|
||||||
const childEvents = getStateEvents(space, StateEvent.SpaceChild);
|
const childEvents = getStateEvents(space, StateEvent.SpaceChild)
|
||||||
childEvents
|
|
||||||
.filter((childEvent) => {
|
.filter((childEvent) => {
|
||||||
if (!isValidChild(childEvent)) return false;
|
if (!isValidChild(childEvent)) return false;
|
||||||
const childId = childEvent.getStateKey();
|
const childId = childEvent.getStateKey();
|
||||||
if (!childId || !isRoomId(childId)) return false;
|
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
|
// because we can not find if a childId is space without joining
|
||||||
// or requesting room summary, we will look it into spaceRooms local
|
// or requesting room summary, we will look it into spaceRooms local
|
||||||
|
|
@ -80,7 +80,6 @@ const getHierarchySpaces = (
|
||||||
childEvents.forEach((childEvent) => {
|
childEvents.forEach((childEvent) => {
|
||||||
const childId = childEvent.getStateKey();
|
const childId = childEvent.getStateKey();
|
||||||
if (!childId || !isRoomId(childId)) return;
|
if (!childId || !isRoomId(childId)) return;
|
||||||
if (excludeRoom(spaceItem.roomId, childId)) return;
|
|
||||||
|
|
||||||
const childItem: HierarchyItemSpace = {
|
const childItem: HierarchyItemSpace = {
|
||||||
roomId: childId,
|
roomId: childId,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue