2020-03-02 12:01:50 -04:00
|
|
|
package org.thoughtcrime.securesms;
|
|
|
|
|
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-05-11 11:22:32 -03:00
|
|
|
private static final boolean UUID_CAPABLE = false;
|
2020-09-22 17:31:07 -03:00
|
|
|
private static final boolean GV2_CAPABLE = 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) {
|
2020-09-22 17:31:07 -03:00
|
|
|
return new AccountAttributes.Capabilities(UUID_CAPABLE, GV2_CAPABLE, storageCapable);
|
2020-03-02 12:01:50 -04:00
|
|
|
}
|
|
|
|
}
|