You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-22 04:02:40 +03:00
Consistently order flairs based on room configuration.
This commit is contained in:
@@ -84,8 +84,8 @@ export default React.createClass({
|
|||||||
_getDisplayedGroups(userGroups, relatedGroups) {
|
_getDisplayedGroups(userGroups, relatedGroups) {
|
||||||
let displayedGroups = userGroups || [];
|
let displayedGroups = userGroups || [];
|
||||||
if (relatedGroups && relatedGroups.length > 0) {
|
if (relatedGroups && relatedGroups.length > 0) {
|
||||||
displayedGroups = displayedGroups.filter((groupId) => {
|
displayedGroups = relatedGroups.filter((groupId) => {
|
||||||
return relatedGroups.includes(groupId);
|
return displayedGroups.includes(groupId);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
displayedGroups = [];
|
displayedGroups = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user