Skip to content

Commit

Permalink
Merge pull request #2555 from matrix-org/kegan/sync-v3
Browse files Browse the repository at this point in the history
Sliding sync: add missing filters from latest MSC
  • Loading branch information
kegsay authored Aug 2, 2022
2 parents 4a42418 + fa6708c commit f099134
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sliding-sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ export interface MSC3575Filter {
is_invite?: boolean;
is_tombstoned?: boolean;
room_name_like?: string;
room_types?: string[];
not_room_types?: string[];
spaces?: string[];
}

/**
Expand Down Expand Up @@ -602,7 +605,7 @@ export class SlidingSync extends TypedEventEmitter<SlidingSyncEvent, SlidingSync
listIndex,
op.range[0],
op.range[1],
op.room_ids.join(" "),
(op.room_ids || []).join(" "),
";",
);
break;
Expand Down

0 comments on commit f099134

Please sign in to comment.