Fallback to legacy send if group send fails due to invalid prekey

This commit is contained in:
AsamK 2023-05-23 19:15:04 +02:00
parent 83c75acd0a
commit 227f87e1ce

View file

@ -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;
}
} }
} }