mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 00:29:11 +01:00
Display member label on recipient details sheet.
This commit is contained in:
committed by
Greyson Parrelli
parent
fae4ca91bd
commit
d5b2f4fdd3
@@ -305,11 +305,13 @@ object RemoteConfig {
|
||||
val newKey = key.removePrefix("android.libsignal.")
|
||||
when (value) {
|
||||
is String -> newKey to value
|
||||
|
||||
// The server is currently synthesizing "true" / "false" values
|
||||
// for RemoteConfigs that are otherwise empty string values.
|
||||
// Libsignal expects that disabled values are simply absent from the
|
||||
// map, so we map true to "true" and otherwise omit disabled values.
|
||||
is Boolean -> if (value) newKey to "true" else null
|
||||
|
||||
else -> {
|
||||
val type = value?.let { value::class.simpleName }
|
||||
Log.w(TAG, "[libsignal] Unexpected type for $newKey! Was a $type")
|
||||
@@ -1237,6 +1239,15 @@ object RemoteConfig {
|
||||
hotSwappable = true
|
||||
)
|
||||
|
||||
/**
|
||||
* Whether to receive and display group member labels.
|
||||
*/
|
||||
val receiveMemberLabels: Boolean by remoteBoolean(
|
||||
key = "android.receiveMemberLabels",
|
||||
defaultValue = false,
|
||||
hotSwappable = true
|
||||
)
|
||||
|
||||
/**
|
||||
* Whether to enable modifying group member labels.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user