From 9e11da1fa5a7d289ea1457e43e4e8ea8208e2b80 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 18 Jun 2021 16:11:11 +0100 Subject: [PATCH] Fix typing --- src/models/room.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/room.ts b/src/models/room.ts index 9b271c4fe..0689c1fb7 100644 --- a/src/models/room.ts +++ b/src/models/room.ts @@ -1749,7 +1749,7 @@ export class Room extends EventEmitter { * by the JS SDK. * @return {String} ID of the latest event that the given user has read, or null. */ - public getEventReadUpTo(userId: string, ignoreSynthesized: boolean): string | null { + public getEventReadUpTo(userId: string, ignoreSynthesized = false): string | null { let receipts = this.receipts; if (ignoreSynthesized) { receipts = this.realReceipts;