Skip to content

Commit

Permalink
chore: show MLS client ID in debug screen for private builds [WPB-152…
Browse files Browse the repository at this point in the history
…15] (#3808)
  • Loading branch information
MohamadJaara authored and github-actions[bot] committed Jan 27, 2025
1 parent 25f96c5 commit 78b0b73
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,11 @@ fun DebugDataOptionsContent(
isEncryptedStorageEnabled = state.isEncryptedProteusStorageEnabled,
onEncryptedStorageEnabledChange = onEnableEncryptedProteusStorageChange
)
if (BuildConfig.DEBUG) {
if (BuildConfig.PRIVATE_BUILD) {
MLSOptions(
keyPackagesCount = state.keyPackagesCount,
mlsClientId = state.mslClientId,
mlsErrorMessage = state.mlsErrorMessage,
restartSlowSyncForRecovery = onRestartSlowSyncForRecovery,
onCopyText = onCopyText
)
}
Expand Down Expand Up @@ -301,18 +300,13 @@ private fun MLSOptions(
mlsClientId: String,
mlsErrorMessage: String,
onCopyText: (String) -> Unit,
restartSlowSyncForRecovery: () -> Unit
) {
FolderHeader(stringResource(R.string.label_mls_option_title))
Column {
SettingsItem(
title = "Error Message",
text = mlsErrorMessage,
trailingIcon = R.drawable.ic_copy,
onIconPressed = Clickable(
enabled = true,
onClick = restartSlowSyncForRecovery
)
trailingIcon = null
)
SettingsItem(
title = stringResource(R.string.label_key_packages_count),
Expand Down

0 comments on commit 78b0b73

Please sign in to comment.