Fix typing

This commit is contained in:
Michael Telatynski
2021-06-18 16:11:11 +01:00
parent b760fa0ff5
commit 9e11da1fa5
+1 -1
View File
@@ -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;