add more tests

This commit is contained in:
Michael Telatynski 2021-04-23 09:55:30 +01:00
parent fba7465ad4
commit 1075756929
3 changed files with 76 additions and 11 deletions

View file

@ -583,7 +583,9 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
return state;
}
// traverse space tree with DFS calling fn on each space including the given root one
// traverse space tree with DFS calling fn on each space including the given root one,
// if includeRooms is true then fn will be called on each leaf room, if it is present in multiple sub-spaces
// then fn will be called with it multiple times.
public traverseSpace(
spaceId: string,
fn: (roomId: string) => void,