include unsupported room in rooms

This commit is contained in:
Ajay Bura 2024-02-10 09:28:07 +05:30
parent ba3b989215
commit 4d9c59b220

View file

@ -76,8 +76,8 @@ export const isSpace = (room: Room | null): boolean => {
export const isRoom = (room: Room | null): boolean => { export const isRoom = (room: Room | null): boolean => {
if (!room) return false; if (!room) return false;
const event = getStateEvent(room, StateEvent.RoomCreate); const event = getStateEvent(room, StateEvent.RoomCreate);
if (!event) return false; if (!event) return true;
return event.getContent().type === undefined; return event.getContent().type !== RoomType.Space;
}; };
export const isUnsupportedRoom = (room: Room | null): boolean => { export const isUnsupportedRoom = (room: Room | null): boolean => {