Ignore PNI key upload errors for now

Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
automated-signal 2022-04-22 12:17:34 -07:00 committed by GitHub
parent 8faf3bfbec
commit dc4ef43b46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 2 deletions

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 {