mirror of
https://github.com/AsamK/signal-cli.git
synced 2026-04-27 09:50:16 +00:00
Fallback to legacy send if group send fails due to invalid prekey
This commit is contained in:
parent
83c75acd0a
commit
227f87e1ce
@ -617,6 +617,13 @@ public class SendHelper {
|
||||
} catch (NotFoundException e) {
|
||||
logger.warn("Someone was unregistered. Falling back to legacy sends.", e);
|
||||
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…
x
Reference in New Issue
Block a user