2020-03-02 12:01:50 -04:00
|
|
|
package org.thoughtcrime.securesms;
|
|
|
|
|
2021-06-09 09:56:21 -04:00
|
|
|
import org.thoughtcrime.securesms.util.FeatureFlags;
|
2020-09-22 11:09:51 -03:00
|
|
|
import org.whispersystems.signalservice.api.account.AccountAttributes;
|
2020-03-02 12:01:50 -04:00
|
|
|
|
|
|
|
public final class AppCapabilities {
|
|
|
|
|
|
|
|
private AppCapabilities() {
|
|
|
|
}
|
|
|
|
|
2020-12-17 17:46:52 -05:00
|
|
|
private static final boolean UUID_CAPABLE = false;
|
|
|
|
private static final boolean GV2_CAPABLE = true;
|
|
|
|
private static final boolean GV1_MIGRATION = true;
|
2020-03-02 12:01:50 -04:00
|
|
|
|
2020-04-02 17:09:25 -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.
|
|
|
|
*/
|
2020-09-22 11:09:51 -03:00
|
|
|
public static AccountAttributes.Capabilities getCapabilities(boolean storageCapable) {
|
2021-06-09 09:56:21 -04:00
|
|
|
return new AccountAttributes.Capabilities(UUID_CAPABLE, GV2_CAPABLE, storageCapable, GV1_MIGRATION, FeatureFlags.senderKey());
|
2020-03-02 12:01:50 -04:00
|
|
|
}
|
|
|
|
}
|