diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index 08bed976cc..855090873f 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -317,7 +317,7 @@ module.exports = React.createClass({ // lazy load members if enabled if (SettingsStore.isFeatureEnabled('feature_lazyloading')) { - MatrixClientPeg.get().loadRoomMembersIfNeeded(room.roomId).catch((err) => { + room.loadMembersIfNeeded().catch((err) => { const errorMessage = `Fetching room members for ${this.roomId} failed.` + " Room members will appear incomplete."; console.error(errorMessage);