Co-Authored-By: Greyson Parrelli <37311915+greyson-signal@users.noreply.github.com> Co-Authored-By: Rashad Sookram <95182499+rashad-signal@users.noreply.github.com>
25 lines
1 KiB
Java
25 lines
1 KiB
Java
package org.thoughtcrime.securesms;
|
|
|
|
import org.thoughtcrime.securesms.util.FeatureFlags;
|
|
import org.whispersystems.signalservice.api.account.AccountAttributes;
|
|
|
|
public final class AppCapabilities {
|
|
|
|
private AppCapabilities() {
|
|
}
|
|
|
|
private static final boolean UUID_CAPABLE = false;
|
|
private static final boolean GV2_CAPABLE = true;
|
|
private static final boolean GV1_MIGRATION = true;
|
|
private static final boolean ANNOUNCEMENT_GROUPS = true;
|
|
private static final boolean SENDER_KEY = true;
|
|
private static final boolean CHANGE_NUMBER = true;
|
|
|
|
/**
|
|
* @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 AccountAttributes.Capabilities getCapabilities(boolean storageCapable) {
|
|
return new AccountAttributes.Capabilities(UUID_CAPABLE, GV2_CAPABLE, storageCapable, GV1_MIGRATION, SENDER_KEY, ANNOUNCEMENT_GROUPS, CHANGE_NUMBER, FeatureFlags.stories());
|
|
}
|
|
}
|