mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 00:37:47 +00:00
Ignore envelopes with unknown type
// FREEBIE
This commit is contained in:
parent
339d352d6e
commit
751fa21f60
@ -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…
x
Reference in New Issue
Block a user