Make crypto.getOlmSessionsForUser async
This is snever used anywhere (it's mosdly for debug), so this is trivial
This commit is contained in:
+2
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user