1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

Fix what was probablyt a c+p fail

This commit is contained in:
David Baker
2019-11-12 13:21:37 +00:00
parent 4c651c15ea
commit 9bc185d459

View File

@@ -214,7 +214,7 @@ export default function Crypto(baseApis, sessionStore, userId, deviceId,
utils.inherits(Crypto, EventEmitter);
Crypto.prototype.addSecretKey = function(algorithm, opts, keyID) {
return this._secretStorage.store(algorithm, opts, keyID);
return this._secretStorage.addKey(algorithm, opts, keyID);
};
Crypto.prototype.storeSecret = function(name, secret, keys) {