mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 16:57:50 +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);
|
directory.setNumber(contactTokenDetails, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (envelope.isReceipt()) handleReceipt(envelope);
|
if (envelope.isReceipt()) {
|
||||||
else handleMessage(envelope, sendExplicitReceipt);
|
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) {
|
private void handleMessage(TextSecureEnvelope envelope, boolean sendExplicitReceipt) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user