You've already forked matrix-js-sdk
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:
@@ -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 = {};
|
||||
|
||||
Reference in New Issue
Block a user