From 9bc185d459ce5d599c9187d3827f39da7e3a0ea9 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 12 Nov 2019 13:21:37 +0000 Subject: [PATCH] Fix what was probablyt a c+p fail --- src/crypto/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {