This commit is contained in:
Matthew Hodgson 2021-03-08 05:08:01 +00:00
parent c02d03cc5b
commit 997d6e1281
3 changed files with 7 additions and 12 deletions

View file

@ -92,15 +92,14 @@ export class SetupEncryptionStore extends EventEmitter {
this.hasDevicesToVerifyAgainst = cli.getStoredDevicesForUser(cli.getUserId()).some(
device =>
device.getIdentityKey() &&
(!dehydratedDevice || (device.deviceId != dehydratedDevice.device_id))
(!dehydratedDevice || (device.deviceId != dehydratedDevice.device_id)),
);
if (!this.hasDevicesToVerifyAgainst && !this.keyInfo) {
// skip before we can even render anything.
// XXX: this causes a dialog box flash
this.phase = PHASE_FINISHED;
}
else {
} else {
this.phase = PHASE_INTRO;
}
this.emit("update");