From b7a3c4557f222920249db30a42dca1f1d0601cec Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Tue, 18 Jul 2017 17:05:38 +0100 Subject: [PATCH] Make crypto.getOlmSessionsForUser async This is snever used anywhere (it's mosdly for debug), so this is trivial --- src/crypto/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {