Remove legacy fields from the Envelope.

This commit is contained in:
Greyson Parrelli
2022-08-18 13:32:29 -04:00
committed by Cody Henthorne
parent b4ae13fe8a
commit 9c266e7995
7 changed files with 27 additions and 91 deletions

View File

@@ -81,11 +81,6 @@ public class IncomingMessageProcessor {
* one was created. Otherwise null.
*/
public @Nullable String processEnvelope(@NonNull SignalServiceEnvelope envelope) {
if (FeatureFlags.phoneNumberPrivacy() && envelope.hasSourceE164()) {
Log.w(TAG, "PNP enabled -- mimicking PNP by dropping the E164 from the envelope.");
envelope = envelope.withoutE164();
}
if (envelope.hasSourceUuid()) {
Recipient.externalPush(envelope.getSourceAddress());
}