diff --git a/src/client.ts b/src/client.ts index 5bc6ab07120..3dfb030fe13 100644 --- a/src/client.ts +++ b/src/client.ts @@ -9929,7 +9929,7 @@ export class MatrixClient extends TypedEventEmitter(Method.Post, "/sync", qps, req, { - prefix: "/_matrix/client/unstable/org.matrix.msc3575", + prefix: "/_matrix/client/unstable/org.matrix.simplified_msc3575", baseUrl: proxyBaseUrl, localTimeoutMs: clientTimeout, abortSignal, diff --git a/src/sliding-sync.ts b/src/sliding-sync.ts index 487c447a262..d49ac4efa15 100644 --- a/src/sliding-sync.ts +++ b/src/sliding-sync.ts @@ -461,13 +461,13 @@ export class SlidingSync extends TypedEventEmitter { + public setListRanges(key: string, ranges: number[][]): void { const list = this.lists.get(key); if (!list) { - return Promise.reject(new Error("no list with key " + key)); + throw new Error("no list with key " + key); } list.updateListRange(ranges); - return this.resend(); + //return this.resend(); } /** @@ -479,7 +479,7 @@ export class SlidingSync extends TypedEventEmitter { + public setList(key: string, list: MSC3575List): void { const existingList = this.lists.get(key); if (existingList) { existingList.replaceList(list); @@ -488,7 +488,7 @@ export class SlidingSync extends TypedEventEmitter = {}; this.lists.forEach((l: SlidingList, key: string) => { - reqLists[key] = l.getList(false); + reqLists[key] = l.getList(true); }); const reqBody: MSC3575SlidingSyncRequest = { lists: reqLists,