-
-
Notifications
You must be signed in to change notification settings - Fork 823
Support prioritized room list filters #4737
Conversation
This is to fix an issue where when using both the community filter panel and the search box it's an AND rather than further refining the results. This makes the search box further refine the community filter panel results.
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.
Thanks, looks good overall!
@@ -45,3 +45,63 @@ export function arrayDiff<T>(a: T[], b: T[]): { added: T[], removed: T[] } { | |||
removed: a.filter(i => !b.includes(i)), | |||
}; | |||
} | |||
|
|||
/** | |||
* Helper functions to perform LINQ-like queries on arrays. |
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.
I see you're slowly implementing every C# / .NET Framework feature... 😜
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.
I really wanted groupBy
/** | ||
* Helper functions to perform LINQ-like queries on arrays. | ||
*/ | ||
export class ArrayUtil<T> { |
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.
Util
sounds like a module of static functions rather than a class to me... Not sure what to suggest at the moment though.
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.
Possibly LINQArray or Array2 to fully embrace .net bad practices. Or dump these on the Array prototype and forget that they're custom to the project
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.
Yikes. 😨 Let's just leave it as-is for now, can change if we're inspired later.
For element-hq/element-web#13635
This is to fix an issue where when using both the community filter panel and the search box it's an AND rather than further refining the results.
This makes the search box further refine the community filter panel results.
Screenshot proof (ignore the ugly CSS - that's not important here):
