diff --git a/src/crypto/index.js b/src/crypto/index.js index 651f9df4d..9ba5d9439 100644 --- a/src/crypto/index.js +++ b/src/crypto/index.js @@ -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) {