Stop relying on SignalServiceEnvelope and instead use SignalServiceContent to determine message sender and friend request

This commit is contained in:
Mikunj
2020-01-29 13:49:39 +11:00
parent 01f5ff7c86
commit 62d391085b
6 changed files with 35 additions and 38 deletions

View File

@@ -30,12 +30,7 @@ public class UnidentifiedAccessUtil {
private static final String TAG = UnidentifiedAccessUtil.class.getSimpleName();
public static CertificateValidator getCertificateValidator() {
try {
ECPublicKey unidentifiedSenderTrustRoot = Curve.decodePoint(Base64.decode(BuildConfig.UNIDENTIFIED_SENDER_TRUST_ROOT), 0);
return new CertificateValidator(unidentifiedSenderTrustRoot);
} catch (InvalidKeyException | IOException e) {
throw new AssertionError(e);
}
return new CertificateValidator();
}
@WorkerThread