Ignore PNI key upload errors for now

This commit is contained in:
Fedor Indutny 2022-04-22 12:02:23 -07:00 committed by GitHub
parent 9973c661d0
commit 7775f7d806
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -310,8 +310,20 @@ export default class AccountManager extends EventTarget {
kind
);
await this.server.registerKeys(keys, kind);
await this.confirmKeys(keys, kind);
try {
await this.server.registerKeys(keys, kind);
await this.confirmKeys(keys, kind);
} catch (error) {
if (kind === UUIDKind.PNI) {
log.error(
'Failed to upload PNI prekeys. Moving on',
Errors.toLogFormat(error)
);
return;
}
throw error;
}
})
);
} finally {