mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 13:08:46 +00:00
Enable the Zk group library.
This commit is contained in:
committed by
Greyson Parrelli
parent
098b298646
commit
36df3f234f
@@ -5,9 +5,7 @@ package org.whispersystems.signalservice;
|
||||
* After a feature has been launched, the flag should be removed.
|
||||
*/
|
||||
public final class FeatureFlags {
|
||||
/** Zero Knowledge Group functions */
|
||||
public static final boolean ZK_GROUPS = false;
|
||||
|
||||
/** Read and write versioned profile information. */
|
||||
public static final boolean VERSIONED_PROFILES = ZK_GROUPS && false;
|
||||
public static final boolean VERSIONED_PROFILES = false;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@ package org.whispersystems.signalservice.api.groupsv2;
|
||||
import org.signal.zkgroup.ServerPublicParams;
|
||||
import org.signal.zkgroup.auth.ClientZkAuthOperations;
|
||||
import org.signal.zkgroup.profiles.ClientZkProfileOperations;
|
||||
import org.whispersystems.signalservice.FeatureFlags;
|
||||
import org.whispersystems.signalservice.internal.configuration.SignalServiceConfiguration;
|
||||
|
||||
/**
|
||||
@@ -24,8 +23,7 @@ public final class ClientZkOperations {
|
||||
}
|
||||
|
||||
public static ClientZkOperations create(SignalServiceConfiguration configuration) {
|
||||
return FeatureFlags.ZK_GROUPS ? new ClientZkOperations(new ServerPublicParams(configuration.getZkGroupServerPublicParams()))
|
||||
: new ClientZkOperations(null);
|
||||
return new ClientZkOperations(new ServerPublicParams(configuration.getZkGroupServerPublicParams()));
|
||||
}
|
||||
|
||||
public ClientZkAuthOperations getAuthOperations() {
|
||||
|
||||
Reference in New Issue
Block a user