mirror of
https://github.com/aljazceru/signal-cli.git
synced 2026-01-03 14:14:22 +01:00
Fallback to legacy send if group send fails due to invalid prekey
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user