diff --git a/src/base-apis.js b/src/base-apis.js index 7c7a2fd6c..26ecd9180 100644 --- a/src/base-apis.js +++ b/src/base-apis.js @@ -1007,7 +1007,7 @@ MatrixBaseApis.prototype.setRoomReadMarkersHttpRequest = const content = { "m.fully_read": rmEventId, "m.read": rrEventId, - "m.hidden": Boolean(opts ? opts.hidden : false) + "m.hidden": Boolean(opts ? opts.hidden : false), }; return this._http.authedRequest( diff --git a/src/client.js b/src/client.js index a0e05a055..0c99c2631 100644 --- a/src/client.js +++ b/src/client.js @@ -2269,7 +2269,9 @@ MatrixClient.prototype.sendReadReceipt = async function(event, opts, callback) { * This property is unstable and may change in the future. * @return {module:client.Promise} Resolves: the empty object, {}. */ -MatrixClient.prototype.setRoomReadMarkers = async function(roomId, rmEventId, rrEvent, opts) { +MatrixClient.prototype.setRoomReadMarkers = async function( + roomId, rmEventId, rrEvent, opts, +) { const room = this.getRoom(roomId); if (room && room.hasPendingEvent(rmEventId)) { throw new Error(`Cannot set read marker to a pending event (${rmEventId})`);