mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 09:46:09 +03:00
Only show joined/invited in search dialog (#7875)
This commit is contained in:
parent
be9ae7ea03
commit
61b68252a6
1 changed files with 4 additions and 1 deletions
|
@ -247,7 +247,10 @@ const SpotlightDialog: React.FC<IProps> = ({ initialText = "", onFinished }) =>
|
|||
SpaceStore.instance.setActiveSpace(spaceKey);
|
||||
},
|
||||
})),
|
||||
...cli.getVisibleRooms().map(room => {
|
||||
...cli.getVisibleRooms().filter(room => {
|
||||
// TODO we may want to put invites in their own list
|
||||
return room.getMyMembership() === "join" || room.getMyMembership() == "invite";
|
||||
}).map(room => {
|
||||
let section: Section;
|
||||
let query: string[];
|
||||
|
||||
|
|
Loading…
Reference in a new issue