From 79bf64f07929da0d81d9fb252529cf5eb53ca995 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 5 Sep 2019 20:40:16 -0600 Subject: [PATCH] Appease the linter --- src/base-apis.js | 2 +- src/client.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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})`);