Skip to content

Commit 5822730

Browse files
Implement MSC3827: Filtering of /publicRooms by room type (matrix-org#2469)
1 parent fc946ab commit 5822730

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/@types/requests.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import { IRoomEventFilter } from "../filter";
2222
import { Direction } from "../models/event-timeline";
2323
import { PushRuleAction } from "./PushRules";
2424
import { IRoomEvent } from "../sync-accumulator";
25+
import { RoomType } from "./event";
2526

2627
// allow camelcase as these are things that go onto the wire
2728
/* eslint-disable camelcase */
@@ -111,7 +112,8 @@ export interface IRoomDirectoryOptions {
111112
limit?: number;
112113
since?: string;
113114
filter?: {
114-
generic_search_term: string;
115+
generic_search_term?: string;
116+
"org.matrix.msc3827.room_types"?: Array<RoomType | null>;
115117
};
116118
include_all_networks?: boolean;
117119
third_party_instance_id?: string;

0 commit comments

Comments
 (0)