You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-28 05:03:59 +03:00
Don't force device list download on every message in olm room
we only really hit this in the tests, but it's a bit silly to download the complete device list on every message.
This commit is contained in:
@@ -64,7 +64,7 @@ OlmEncryption.prototype._ensureSession = function(roomMembers) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const self = this;
|
const self = this;
|
||||||
this._prepPromise = self._crypto.downloadKeys(roomMembers, true).then(function(res) {
|
this._prepPromise = self._crypto.downloadKeys(roomMembers).then(function(res) {
|
||||||
return self._crypto.ensureOlmSessionsForUsers(roomMembers);
|
return self._crypto.ensureOlmSessionsForUsers(roomMembers);
|
||||||
}).then(function() {
|
}).then(function() {
|
||||||
self._sessionPrepared = true;
|
self._sessionPrepared = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user