From a1097597d4831aee70e1c5560af902984d8631bd Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Tue, 1 Apr 2025 00:06:59 +0300 Subject: [PATCH] web/statestore: include policy list rooms in room list --- web/src/api/statestore/main.ts | 5 ++++- web/src/api/types/mxtypes.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/web/src/api/statestore/main.ts b/web/src/api/statestore/main.ts index 0fc4583..47e30fe 100644 --- a/web/src/api/statestore/main.ts +++ b/web/src/api/statestore/main.ts @@ -177,9 +177,12 @@ export class StateStore { #shouldHideRoom(entry: SyncRoom): boolean { const cc = entry.meta.creation_content - if ((cc?.type ?? "") !== "") { + switch (cc?.type ?? "") { + default: // The room is not a normal room return true + case "": + case "support.feline.policy.lists.msc.v1": } const replacementRoom = entry.meta.tombstone?.replacement_room if ( diff --git a/web/src/api/types/mxtypes.ts b/web/src/api/types/mxtypes.ts index ff4c642..a1b6cf4 100644 --- a/web/src/api/types/mxtypes.ts +++ b/web/src/api/types/mxtypes.ts @@ -22,7 +22,7 @@ export type ContentURI = string export type RoomAlias = string export type ReceiptType = "m.read" | "m.read.private" export type RoomVersion = "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" -export type RoomType = "" | "m.space" +export type RoomType = "" | "m.space" | "support.feline.policy.lists.msc.v1" export type RelationType = "m.annotation" | "m.reference" | "m.replace" | "m.thread" export type JSONValue =