1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

Also support not lazy-loading members in Crypto

This commit is contained in:
Bruno Windels
2018-08-23 18:44:06 +02:00
parent 21e0c79f7d
commit 7247762b60
2 changed files with 33 additions and 6 deletions

View File

@@ -3098,6 +3098,10 @@ MatrixClient.prototype.startClient = async function(opts) {
}
}
if (opts.lazyLoadMembers && this._crypto) {
this._crypto.enableLazyLoading();
}
opts.crypto = this._crypto;
opts.canResetEntireTimeline = (roomId) => {
if (!this._canResetTimelineCallback) {