-
-
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: Support filters by implementing just the favourite filter #29433
Conversation
- Holds data to indicate which filters apply - Provides method to check if a given set of filters apply to this node - Provides a method to recalculate which filters apply
while (current) { | ||
if (current.isInActiveSpace && current.doesRoomMatchFilters(this.filters)) break; | ||
else current = current.next[0]; | ||
} | ||
if (!current) return { value: undefined, done: true }; |
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.
The code style here doesn't really match the rest of the codebase
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.
if conditions without braces?
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.
else without braces namely
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.
still not sure what the code style actually is though. Our code_Style.md says:
When a statement's body is a single line, it must be written without curly braces, so long as the body is placed on the same line as the statement.
This PR only implements the favourite filter.