Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Only show joined/invited in search dialog #7875

Merged
merged 1 commit into from
Feb 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/components/views/dialogs/SpotlightDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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[];

Expand Down