check LL with client as this takes server support into account

pull/21833/head
Bruno Windels 2018-09-17 19:28:06 +02:00
parent 0ce7bb8995
commit 841aa4b800
1 changed files with 2 additions and 2 deletions

View File

@ -590,8 +590,8 @@ module.exports = React.createClass({
_loadMembersIfJoined: async function(room) { _loadMembersIfJoined: async function(room) {
// lazy load members if enabled // lazy load members if enabled
if (SettingsStore.isFeatureEnabled('feature_lazyloading')) { const cli = MatrixClientPeg.get();
const cli = MatrixClientPeg.get(); if (cli.hasLazyLoadMembersEnabled()) {
if (room && room.getMyMembership() === 'join') { if (room && room.getMyMembership() === 'join') {
try { try {
await room.loadMembersIfNeeded(); await room.loadMembersIfNeeded();