Skip to content

Commit

Permalink
Merge pull request #748 from matrix-org/bwindels/nollforguests
Browse files Browse the repository at this point in the history
disable lazy loading for guests as they cant create filters
  • Loading branch information
dbkr authored Sep 27, 2018
2 parents b508aa9 + 1c348f0 commit 6f59d62
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -3117,6 +3117,9 @@ MatrixClient.prototype.startClient = async function(opts) {
// shallow-copy the opts dict before modifying and storing it
opts = Object.assign({}, opts);

if (opts.lazyLoadMembers && this.isGuest()) {
opts.lazyLoadMembers = false;
}
if (opts.lazyLoadMembers) {
const supported = await this.doesServerSupportLazyLoading();
if (supported) {
Expand Down

0 comments on commit 6f59d62

Please sign in to comment.