mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +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) {
|
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
|
// 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
|
// and check the keys, and we should only do network requests during
|
||||||
// sync processing in the afterSyncCompleted step.
|
// sync processing in the afterSyncCompleted step.
|
||||||
@ -100,6 +101,7 @@ export class DeviceMessageHandler {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
class SyncPreparation {
|
class SyncPreparation {
|
||||||
constructor(olmDecryptChanges, newRoomKeys) {
|
constructor(olmDecryptChanges, newRoomKeys) {
|
||||||
|
Loading…
Reference in New Issue
Block a user