From 58227307974a9730cf2e4a2900284cb4128c438a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Mon, 20 Jun 2022 16:21:46 +0200 Subject: [PATCH] Implement MSC3827: Filtering of `/publicRooms` by room type (#2469) --- src/@types/requests.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/@types/requests.ts b/src/@types/requests.ts index f03f6341bee..160a0af25bb 100644 --- a/src/@types/requests.ts +++ b/src/@types/requests.ts @@ -22,6 +22,7 @@ import { IRoomEventFilter } from "../filter"; import { Direction } from "../models/event-timeline"; import { PushRuleAction } from "./PushRules"; import { IRoomEvent } from "../sync-accumulator"; +import { RoomType } from "./event"; // allow camelcase as these are things that go onto the wire /* eslint-disable camelcase */ @@ -111,7 +112,8 @@ export interface IRoomDirectoryOptions { limit?: number; since?: string; filter?: { - generic_search_term: string; + generic_search_term?: string; + "org.matrix.msc3827.room_types"?: Array; }; include_all_networks?: boolean; third_party_instance_id?: string;