mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-03-01 06:07:37 +00:00
Inline link+sync remote config.
This commit is contained in:
@@ -181,7 +181,7 @@ class LinkDeviceViewModel : ViewModel() {
|
||||
if (LinkDeviceRepository.isValidQr(uri)) {
|
||||
_state.update {
|
||||
it.copy(
|
||||
qrCodeState = if (uri.supportsLinkAndSync() && RemoteConfig.linkAndSync) QrCodeState.VALID_WITH_SYNC else QrCodeState.VALID_WITHOUT_SYNC,
|
||||
qrCodeState = if (uri.supportsLinkAndSync()) QrCodeState.VALID_WITH_SYNC else QrCodeState.VALID_WITHOUT_SYNC,
|
||||
linkUri = uri,
|
||||
showFrontCamera = null
|
||||
)
|
||||
@@ -225,7 +225,7 @@ class LinkDeviceViewModel : ViewModel() {
|
||||
Log.i(TAG, "Adding device with sync.")
|
||||
addDeviceWithSync(linkUri)
|
||||
} else {
|
||||
Log.i(TAG, "Adding device without sync. (uri: ${linkUri.supportsLinkAndSync()}, remoteConfig: ${RemoteConfig.linkAndSync})")
|
||||
Log.i(TAG, "Adding device without sync. (uri: ${linkUri.supportsLinkAndSync()})")
|
||||
addDeviceWithoutSync(linkUri)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1119,14 +1119,6 @@ object RemoteConfig {
|
||||
hotSwappable = false
|
||||
)
|
||||
|
||||
/** Whether or not this device supports syncing data to newly-linked device. */
|
||||
@JvmStatic
|
||||
val linkAndSync: Boolean by remoteBoolean(
|
||||
key = "android.linkAndSync.3",
|
||||
defaultValue = false,
|
||||
hotSwappable = true
|
||||
)
|
||||
|
||||
/** Whether or not this device respect attachment backfill requests. */
|
||||
val attachmentBackfillSync: Boolean by remoteBoolean(
|
||||
key = "android.attachmentBackfillSync",
|
||||
|
||||
Reference in New Issue
Block a user