mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-02-22 21:23:09 +01:00
include unsupported room in rooms
This commit is contained in:
parent
ba3b989215
commit
4d9c59b220
1 changed files with 2 additions and 2 deletions
|
@ -76,8 +76,8 @@ export const isSpace = (room: Room | null): boolean => {
|
|||
export const isRoom = (room: Room | null): boolean => {
|
||||
if (!room) return false;
|
||||
const event = getStateEvent(room, StateEvent.RoomCreate);
|
||||
if (!event) return false;
|
||||
return event.getContent().type === undefined;
|
||||
if (!event) return true;
|
||||
return event.getContent().type !== RoomType.Space;
|
||||
};
|
||||
|
||||
export const isUnsupportedRoom = (room: Room | null): boolean => {
|
||||
|
|
Loading…
Reference in a new issue