Resilience to failed PNI key upload, clean more key tables

This commit is contained in:
Scott Nonnenberg 2023-08-28 17:26:39 -07:00 committed by GitHub
parent e05de1aa6f
commit cbd16b90bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 521 additions and 27 deletions

View file

@ -570,14 +570,7 @@ export default class AccountManager extends EventTarget {
signedPreKey,
};
try {
await this.server.registerKeys(toUpload, serviceIdKind);
} catch (error) {
log.error(`${logId} upload error:`, Errors.toLogFormat(error));
throw error;
}
await this.server.registerKeys(toUpload, serviceIdKind);
await this._confirmKeys(toUpload, serviceIdKind);
const { count: updatedPreKeyCount, pqCount: updatedKyberPreKeyCount } =