diff --git a/spec/unit/room.spec.js b/spec/unit/room.spec.js index 85d77269e..dfbf17ec4 100644 --- a/spec/unit/room.spec.js +++ b/spec/unit/room.spec.js @@ -1293,7 +1293,7 @@ describe("Room", function() { }); const room = new Room(roomId); - const promise2 = Promise.resolve([memberEvent2]) + const promise2 = Promise.resolve([memberEvent2]); const promise1 = promise2.then(() => [memberEvent]); await room.loadOutOfBandMembers(promise1); diff --git a/src/client.js b/src/client.js index 0560ff3d1..b75fcf917 100644 --- a/src/client.js +++ b/src/client.js @@ -771,7 +771,7 @@ MatrixClient.prototype.loadRoomMembersIfNeeded = async function(roomId) { const lastEventId = room.getLastEventId(); const responsePromise = this.members(roomId, "join", "leave", lastEventId); const eventsPromise = responsePromise.then((response) => { - return response.chunk.map(this.getEventMapper()) + return response.chunk.map(this.getEventMapper()); }); await room.loadOutOfBandMembers(eventsPromise); };