Skip to content

Commit e808e0f

Browse files
committed
Fix bugs in sync test
This test wrongly asserted that `initialSyncLimit` would be used to make a filter It is used only for the initial sync inline filter, and not in POST /filter
1 parent faa8186 commit e808e0f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/unit/matrix-client.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ describe("MatrixClient", function() {
427427
}
428428
});
429429
});
430-
await client.startClient();
430+
await client.startClient({ filter });
431431
await syncPromise;
432432
});
433433

src/sync.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ const MSC2716_ROOM_VERSIONS = [
102102
function getFilterName(userId: string, suffix?: string): string {
103103
// scope this on the user ID because people may login on many accounts
104104
// and they all need to be stored!
105-
return `FILTER_SYNC_${userId}` + suffix ? "_" + suffix : "";
105+
return `FILTER_SYNC_${userId}` + (suffix ? "_" + suffix : "");
106106
}
107107

108108
function debuglog(...params) {

0 commit comments

Comments
 (0)