check LL with client as this takes server support into account

This commit is contained in:
Bruno Windels 2018-09-17 19:28:06 +02:00
parent 0ce7bb8995
commit 841aa4b800

View file

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