Fix processing of unsupported messages.
This commit is contained in:
parent
dda8808173
commit
3664e6f96d
1 changed files with 7 additions and 4 deletions
|
@ -236,10 +236,13 @@ public final class PushDecryptMessageJob extends BaseJob {
|
||||||
if (sender == null) throw new NoSenderException();
|
if (sender == null) throw new NoSenderException();
|
||||||
|
|
||||||
GroupId groupId = null;
|
GroupId groupId = null;
|
||||||
try {
|
|
||||||
groupId = GroupUtil.idFromGroupContext(e.getGroup().orNull());
|
if (e.getGroup().isPresent()) {
|
||||||
} catch (BadGroupIdException ex) {
|
try {
|
||||||
Log.w(TAG, "Bad group id found in unsupported data message", ex);
|
groupId = GroupUtil.idFromGroupContext(e.getGroup().get());
|
||||||
|
} catch (BadGroupIdException ex) {
|
||||||
|
Log.w(TAG, "Bad group id found in unsupported data message", ex);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return new PushProcessMessageJob.ExceptionMetadata(sender,
|
return new PushProcessMessageJob.ExceptionMetadata(sender,
|
||||||
|
|
Loading…
Add table
Reference in a new issue