web/statestore: include policy list rooms in room list
Some checks failed
Go / Lint Go (old) (push) Has been cancelled
Go / Lint Go (latest) (push) Has been cancelled
JS / Lint JS (push) Has been cancelled

This commit is contained in:
Tulir Asokan 2025-04-01 00:06:59 +03:00
parent f6687c9b0f
commit a1097597d4
2 changed files with 5 additions and 2 deletions

View file

@ -177,9 +177,12 @@ export class StateStore {
#shouldHideRoom(entry: SyncRoom): boolean { #shouldHideRoom(entry: SyncRoom): boolean {
const cc = entry.meta.creation_content const cc = entry.meta.creation_content
if ((cc?.type ?? "") !== "") { switch (cc?.type ?? "") {
default:
// The room is not a normal room // The room is not a normal room
return true return true
case "":
case "support.feline.policy.lists.msc.v1":
} }
const replacementRoom = entry.meta.tombstone?.replacement_room const replacementRoom = entry.meta.tombstone?.replacement_room
if ( if (

View file

@ -22,7 +22,7 @@ export type ContentURI = string
export type RoomAlias = string export type RoomAlias = string
export type ReceiptType = "m.read" | "m.read.private" export type ReceiptType = "m.read" | "m.read.private"
export type RoomVersion = "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" 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 RelationType = "m.annotation" | "m.reference" | "m.replace" | "m.thread"
export type JSONValue = export type JSONValue =