Dont flag endorsements fail on unregistered error
This commit is contained in:
parent
c11a894ad1
commit
6deb1594fa
3 changed files with 16 additions and 12 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue