Ignore envelopes with unknown type
// FREEBIE
This commit is contained in:
parent
339d352d6e
commit
751fa21f60
1 changed files with 7 additions and 2 deletions
|
@ -31,8 +31,13 @@ public abstract class PushReceivedJob extends ContextJob {
|
|||
directory.setNumber(contactTokenDetails, true);
|
||||
}
|
||||
|
||||
if (envelope.isReceipt()) handleReceipt(envelope);
|
||||
else handleMessage(envelope, sendExplicitReceipt);
|
||||
if (envelope.isReceipt()) {
|
||||
handleReceipt(envelope);
|
||||
} else if (envelope.isPreKeyWhisperMessage() || envelope.isWhisperMessage()) {
|
||||
handleMessage(envelope, sendExplicitReceipt);
|
||||
} else {
|
||||
Log.w(TAG, "Received envelope of unknown type: " + envelope.getType());
|
||||
}
|
||||
}
|
||||
|
||||
private void handleMessage(TextSecureEnvelope envelope, boolean sendExplicitReceipt) {
|
||||
|
|
Loading…
Add table
Reference in a new issue