don't assume the call handler is always set in device message handler

This commit is contained in:
Bruno Windels 2023-02-09 11:57:45 +01:00
parent 22a8182266
commit 4a46c98d12

View File

@ -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.
@ -99,6 +100,7 @@ export class DeviceMessageHandler {
}); });
} }
} }
}
} }
class SyncPreparation { class SyncPreparation {