mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 00:59:49 +01:00
18 lines
501 B
Kotlin
18 lines
501 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,
|
|
deleteSync = true
|
|
)
|
|
}
|
|
}
|