mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-08 21:18:34 +00:00

You can now have a PIN without having registration lock. Note: We still need to change the registration flow to allow non-reglock users to enter their PIN.
21 lines
686 B
Java
21 lines
686 B
Java
package org.thoughtcrime.securesms;
|
|
|
|
import org.whispersystems.signalservice.api.profiles.SignalServiceProfile;
|
|
|
|
public final class AppCapabilities {
|
|
|
|
private AppCapabilities() {
|
|
}
|
|
|
|
private static final boolean UUID_CAPABLE = false;
|
|
private static final boolean GROUPS_V2_CAPABLE = false;
|
|
|
|
/**
|
|
* @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, GROUPS_V2_CAPABLE, storageCapable);
|
|
}
|
|
}
|