Dont flag endorsements fail on unregistered error

This commit is contained in:
Jamie Kyle 2024-09-17 16:11:25 -07:00 committed by GitHub
parent c11a894ad1
commit 6deb1594fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 16 additions and 12 deletions

View file

@ -1477,13 +1477,13 @@ async function fetchKeysForServiceId(
await DataWriter.updateConversation(emptyConversation.attributes);
}
} catch (error: unknown) {
if (useGroupSendEndorsement) {
onFailedToSendWithEndorsements(error as Error);
}
if (error instanceof UnregisteredUserError) {
await markServiceIdUnregistered(serviceId);
return;
}
if (useGroupSendEndorsement) {
onFailedToSendWithEndorsements(error as Error);
}
log.error(
`fetchKeysForServiceId: Error fetching ${
devices || 'all'