Display member label on recipient details sheet.

This commit is contained in:
jeffrey-signal
2026-02-06 12:18:15 -05:00
committed by Greyson Parrelli
parent fae4ca91bd
commit d5b2f4fdd3
10 changed files with 352 additions and 88 deletions

View File

@@ -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.
*/