mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
don't assume the call handler is always set in device message handler
This commit is contained in:
parent
22a8182266
commit
4a46c98d12
@ -74,6 +74,7 @@ export class DeviceMessageHandler {
|
||||
}
|
||||
|
||||
async afterSyncCompleted(decryptionResults, deviceTracker, hsApi, log) {
|
||||
if (this._callHandler) {
|
||||
// if we don't have a device, we need to fetch the device keys the message claims
|
||||
// and check the keys, and we should only do network requests during
|
||||
// sync processing in the afterSyncCompleted step.
|
||||
@ -100,6 +101,7 @@ export class DeviceMessageHandler {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class SyncPreparation {
|
||||
constructor(olmDecryptChanges, newRoomKeys) {
|
||||
|
Loading…
Reference in New Issue
Block a user