Signal-Android/app/src/main/java/org/thoughtcrime/securesms/AppCapabilities.java

21 lines
682 B
Java
Raw Normal View History

2020-03-02 12:01:50 -04:00
package org.thoughtcrime.securesms;
import org.thoughtcrime.securesms.util.FeatureFlags;
2020-03-02 12:01:50 -04:00
import org.whispersystems.signalservice.api.profiles.SignalServiceProfile;
public final class AppCapabilities {
private AppCapabilities() {
}
private static final boolean UUID_CAPABLE = false;
2020-03-02 12:01:50 -04:00
/**
* @param storageCapable Whether or not the user can use storage service. This is another way of
* asking if the user has set a Signal PIN or not.
*/
public static SignalServiceProfile.Capabilities getCapabilities(boolean storageCapable) {
return new SignalServiceProfile.Capabilities(UUID_CAPABLE, FeatureFlags.groupsV2(), storageCapable);
2020-03-02 12:01:50 -04:00
}
}