1
0
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:
Richard van der Hoff
2017-02-08 18:10:01 +00:00
parent a73f898bb9
commit 1c1ba58579

View File

@@ -64,7 +64,7 @@ OlmEncryption.prototype._ensureSession = function(roomMembers) {
}
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);
}).then(function() {
self._sessionPrepared = true;