mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 08:39:22 +01:00
Add read support for binary service ids.
This commit is contained in:
committed by
jeffrey-signal
parent
bf4aa9cae9
commit
f16405fabf
@@ -38,6 +38,7 @@ import org.whispersystems.signalservice.api.SignalSessionLock;
|
||||
import org.whispersystems.signalservice.api.messages.multidevice.VerifiedMessage;
|
||||
import org.whispersystems.signalservice.api.push.ServiceId;
|
||||
import org.whispersystems.signalservice.api.push.SignalServiceAddress;
|
||||
import org.whispersystems.signalservice.api.util.UuidUtil;
|
||||
import org.whispersystems.signalservice.internal.push.Verified;
|
||||
|
||||
import java.util.List;
|
||||
@@ -185,7 +186,7 @@ public final class IdentityUtil {
|
||||
}
|
||||
|
||||
public static void processVerifiedMessage(Context context, Verified verified) throws InvalidKeyException {
|
||||
SignalServiceAddress destination = new SignalServiceAddress(ServiceId.parseOrThrow(verified.destinationAci));
|
||||
SignalServiceAddress destination = new SignalServiceAddress(ServiceId.ACI.parseOrThrow(verified.destinationAci, verified.destinationAciBinary));
|
||||
IdentityKey identityKey = new IdentityKey(verified.identityKey.toByteArray(), 0);
|
||||
VerifiedMessage.VerifiedState state;
|
||||
|
||||
|
||||
@@ -1181,6 +1181,15 @@ object RemoteConfig {
|
||||
hotSwappable = true
|
||||
)
|
||||
|
||||
/** Whether or not to send over binary service ids (alongside string service ids). */
|
||||
@JvmStatic
|
||||
@get:JvmName("useBinaryId")
|
||||
val useBinaryId: Boolean by remoteBoolean(
|
||||
key = "android.useBinaryServiceId",
|
||||
defaultValue = false,
|
||||
hotSwappable = false
|
||||
)
|
||||
|
||||
@JvmStatic
|
||||
@get:JvmName("receivePolls")
|
||||
val receivePolls: Boolean by remoteBoolean(
|
||||
|
||||
Reference in New Issue
Block a user