Fix for UnregisteredUserError handling when fetching UUIDs

This commit is contained in:
Fedor Indutny 2021-03-15 16:44:43 -07:00 committed by Josh Perez
parent 6df82867a0
commit fd8339e2ff
4 changed files with 25 additions and 20 deletions

View file

@ -633,6 +633,11 @@ export default class OutgoingMessage {
});
identifier = uuid;
} else {
const c = window.ConversationController.get(identifier);
if (c) {
c.setUnregistered();
}
throw new UnregisteredUserError(
identifier,
new Error('User is not registered')