Skip to content

Commit

Permalink
Implement MSC3827: Filtering of /publicRooms by room type (#2469)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonBrandner authored Jun 20, 2022
1 parent fc946ab commit 5822730
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/@types/requests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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<RoomType | null>;
};
include_all_networks?: boolean;
third_party_instance_id?: string;
Expand Down

0 comments on commit 5822730

Please sign in to comment.