Only show joined/invited in search dialog (#7875)

This commit is contained in:
Michael Telatynski 2022-02-22 16:23:51 +00:00 committed by GitHub
parent be9ae7ea03
commit 61b68252a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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[];