diff --git a/src/components/views/dialogs/SpotlightDialog.tsx b/src/components/views/dialogs/SpotlightDialog.tsx index 5d370ac65e..701cb3099b 100644 --- a/src/components/views/dialogs/SpotlightDialog.tsx +++ b/src/components/views/dialogs/SpotlightDialog.tsx @@ -247,7 +247,10 @@ const SpotlightDialog: React.FC = ({ 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[];