2022-12-21 10:01:20 -05:00
|
|
|
package org.thoughtcrime.securesms
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.util.FeatureFlags
|
|
|
|
import org.whispersystems.signalservice.api.account.AccountAttributes
|
|
|
|
|
|
|
|
object AppCapabilities {
|
|
|
|
/**
|
|
|
|
* @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.
|
|
|
|
*/
|
|
|
|
@JvmStatic
|
|
|
|
fun getCapabilities(storageCapable: Boolean): AccountAttributes.Capabilities {
|
|
|
|
return AccountAttributes.Capabilities(
|
2023-03-14 10:37:20 -04:00
|
|
|
storage = storageCapable,
|
|
|
|
senderKey = true,
|
|
|
|
announcementGroup = true,
|
|
|
|
changeNumber = true,
|
|
|
|
stories = true,
|
|
|
|
giftBadges = true,
|
|
|
|
pni = FeatureFlags.phoneNumberPrivacy(),
|
2022-12-21 10:01:20 -05:00
|
|
|
paymentActivation = true
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|