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) {
|
} 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…
x
Reference in New Issue
Block a user