Simplify OutgoingIdentityKeyError, use it in getKeysForIdentifier
This commit is contained in:
parent
e4b4a0cd1e
commit
fcb96bf92a
6 changed files with 32 additions and 33 deletions
|
@ -1268,8 +1268,8 @@ async function fetchKeysForIdentifier(
|
|||
});
|
||||
window.Signal.Data.updateConversation(emptyConversation.attributes);
|
||||
}
|
||||
} catch (error) {
|
||||
if (error.name === 'UnregisteredUserError') {
|
||||
} catch (error: unknown) {
|
||||
if (error instanceof UnregisteredUserError) {
|
||||
await markIdentifierUnregistered(identifier);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue