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;