1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00
This commit is contained in:
Kegan Dougal
2022-11-01 11:08:47 +00:00
parent 81681f4090
commit 7ddd198df8
2 changed files with 3 additions and 4 deletions

View File

@@ -1129,13 +1129,13 @@ describe("SlidingSync", () => {
const customSubName1 = "sub1"; const customSubName1 = "sub1";
const customSub1 = { const customSub1 = {
timeline_limit: 2, timeline_limit: 2,
required_state: [["*","*"]], required_state: [["*", "*"]],
}; };
const customSubName2 = "sub2"; const customSubName2 = "sub2";
const customSub2 = { const customSub2 = {
timeline_limit: 3, timeline_limit: 3,
required_state: [["*","*"]], required_state: [["*", "*"]],
}; };
it("should be possible to use custom subscriptions on startup", async () => { it("should be possible to use custom subscriptions on startup", async () => {
@@ -1260,7 +1260,6 @@ describe("SlidingSync", () => {
await httpBackend!.flushAllExpected(); await httpBackend!.flushAllExpected();
slidingSync.stop(); slidingSync.stop();
}); });
}); });
describe("extensions", () => { describe("extensions", () => {

View File

@@ -387,7 +387,7 @@ export class SlidingSync extends TypedEventEmitter<SlidingSyncEvent, SlidingSync
* useCustomSubscription. * useCustomSubscription.
* @param sub The subscription information. * @param sub The subscription information.
*/ */
public addCustomSubscription(name: string, sub :MSC3575RoomSubscription) { public addCustomSubscription(name: string, sub: MSC3575RoomSubscription) {
this.customSubscriptions[name] = sub; this.customSubscriptions[name] = sub;
} }