mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-19 02:03:40 -05:00
web/statestore: include policy list rooms in room list
This commit is contained in:
parent
f6687c9b0f
commit
a1097597d4
2 changed files with 5 additions and 2 deletions
|
@ -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 (
|
||||||
|
|
|
@ -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 =
|
||||||
|
|
Loading…
Add table
Reference in a new issue