-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Room List Store: Filter rooms by active space #29399
base: develop
Are you sure you want to change the base?
Conversation
b9e54bb
to
643fda8
Compare
643fda8
to
19ed3e9
Compare
* Returns a promise that resolves when the space store is ready. | ||
* This happens after an initial hierarchy of spaces and rooms has been computed. | ||
*/ | ||
public get isReady(): Promise<void> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is to prevent the room list store from calling methods on the space store before the space store has computed an initial space hierarchy.
982057f
to
ce338a8
Compare
9cd1f3f
to
9465811
Compare
ce338a8
to
c40acd7
Compare
Otherwise, the room list store will get incorrect information about spaces and thus will produce an incorrect roomlist.
Implement a way to filter by active space
c40acd7
to
81ea160
Compare
* Returns a promise that resolves when the space store is ready. | ||
* This happens after an initial hierarchy of spaces and rooms has been computed. | ||
*/ | ||
public get isReady(): Promise<void> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isReady
sounds like it returns a boolean, the naming does not describe a promise which resolves when ready, could you pick a better name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks sane otherwise
Ideally the room list store would give more information about spaces (and the ability to filter by arbitrary spaces) but this should be sufficient for the time being.