1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

make session tracking methods in OlmDevice async

* OlmDevice.getSessionIdsForDevice
* OlmDevice.getSessionIdForDevice
* OlmDevice.getSessionInfoForDevice
This commit is contained in:
Richard van der Hoff
2017-08-10 15:01:56 +01:00
parent f2f8ad6b65
commit 8f527a6212
4 changed files with 13 additions and 11 deletions

View File

@@ -242,7 +242,9 @@ OlmDecryption.prototype.decryptEvent = async function(event) {
OlmDecryption.prototype._decryptMessage = async function(
theirDeviceIdentityKey, message,
) {
const sessionIds = this._olmDevice.getSessionIdsForDevice(theirDeviceIdentityKey);
const sessionIds = await this._olmDevice.getSessionIdsForDevice(
theirDeviceIdentityKey,
);
// try each session in turn.
const decryptionErrors = {};