diff --git a/src/crypto/index.js b/src/crypto/index.js index 45cd3c635..106a90f22 100644 --- a/src/crypto/index.js +++ b/src/crypto/index.js @@ -482,9 +482,9 @@ Crypto.prototype.setDeviceVerification = function(userId, deviceId, verified, * * @param {string} userId id of user to inspect * - * @return {Object.} + * @return {Promise>} */ -Crypto.prototype.getOlmSessionsForUser = function(userId) { +Crypto.prototype.getOlmSessionsForUser = async function(userId) { const devices = this.getStoredDevicesForUser(userId) || []; const result = {}; for (let j = 0; j < devices.length; ++j) {