diff --git a/src/matrix/room/members/load.js b/src/matrix/room/members/load.js index 54d7c3dc..667bec96 100644 --- a/src/matrix/room/members/load.js +++ b/src/matrix/room/members/load.js @@ -31,7 +31,7 @@ async function fetchMembers({summary, roomId, hsApi, storage, setChangedMembersM const changedMembersDuringSync = new Map(); setChangedMembersMap(changedMembersDuringSync); - const memberResponse = await hsApi.members(roomId, {at: summary.lastPaginationToken}).response; + const memberResponse = await hsApi.members(roomId, {at: summary.lastPaginationToken}).response(); const txn = await storage.readWriteTxn([ storage.storeNames.roomSummary,