Make crypto.getOlmSessionsForUser async

This is snever used anywhere (it's mosdly for debug), so this is trivial
This commit is contained in:
Richard van der Hoff
2017-07-18 17:05:38 +01:00
parent 86ad75d27b
commit b7a3c4557f
+2 -2
View File
@@ -482,9 +482,9 @@ Crypto.prototype.setDeviceVerification = function(userId, deviceId, verified,
*
* @param {string} userId id of user to inspect
*
* @return {Object.<string, {deviceIdKey: string, sessions: object[]}>}
* @return {Promise<Object.<string, {deviceIdKey: string, sessions: object[]}>>}
*/
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) {