mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Fallback to legacy send if group send fails due to invalid prekey
This commit is contained in:
parent
83c75acd0a
commit
227f87e1ce
1 changed files with 7 additions and 0 deletions
|
@ -617,6 +617,13 @@ public class SendHelper {
|
||||||
} catch (NotFoundException e) {
|
} catch (NotFoundException e) {
|
||||||
logger.warn("Someone was unregistered. Falling back to legacy sends.", e);
|
logger.warn("Someone was unregistered. Falling back to legacy sends.", e);
|
||||||
return null;
|
return null;
|
||||||
|
} catch (IOException e) {
|
||||||
|
if (e.getCause() instanceof InvalidKeyException) {
|
||||||
|
logger.warn("Invalid key. Falling back to legacy sends.", e);
|
||||||
|
return null;
|
||||||
|
} else {
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue