1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-25 05:23:13 +03:00

split up setKey and setKeyAndQueue

as dehydrating in the background prevents use-cases where you
want to await the creation of the dehydrated device
This commit is contained in:
Bruno Windels
2020-11-04 16:01:25 +01:00
parent 4ab675863a
commit 13c7f55a79
2 changed files with 16 additions and 4 deletions

View File

@@ -577,7 +577,7 @@ MatrixClient.prototype.setDehydrationKey = async function(
logger.warn('not dehydrating device if crypto is not enabled');
return;
}
return await this._crypto._dehydrationManager.setDehydrationKey(
return await this._crypto._dehydrationManager.setKeyAndQueue(
key, keyInfo, deviceDisplayName,
);
};