mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-18 15:56:24 +01:00
24 lines
656 B
Kotlin
24 lines
656 B
Kotlin
package org.thoughtcrime.securesms
|
|
|
|
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(
|
|
storage = storageCapable,
|
|
senderKey = true,
|
|
announcementGroup = true,
|
|
changeNumber = true,
|
|
stories = true,
|
|
giftBadges = true,
|
|
pni = true,
|
|
paymentActivation = true
|
|
)
|
|
}
|
|
}
|