Skip to content

Commit

Permalink
feat: disable QR code by feature flag (WPB-11921) 🍒 (#3570)
Browse files Browse the repository at this point in the history
Co-authored-by: Yamil Medina <[email protected]>
  • Loading branch information
github-actions[bot] and yamilmedina authored Oct 30, 2024
1 parent abf3132 commit be29f25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ import com.wire.android.ui.theme.WireTheme
import com.wire.android.ui.theme.wireColorScheme
import com.wire.android.ui.theme.wireDimensions
import com.wire.android.ui.theme.wireTypography
import com.wire.android.util.debug.FeatureVisibilityFlags.QRCodeEnabled
import com.wire.android.util.debug.LocalFeatureVisibilityFlags
import com.wire.android.util.ifNotEmpty
import com.wire.android.util.ui.PreviewMultipleThemes
Expand Down Expand Up @@ -240,7 +241,7 @@ fun UserProfileInfo(
bottom.linkTo(displayName.bottom)
}
) {
if (isLoading.not()) {
if (QRCodeEnabled && isLoading.not()) {
onQrCodeClick?.let { QRCodeIcon(it) }
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ object FeatureVisibilityFlags {
const val MessageEditIcon = true
const val SearchConversationMessages = true
const val DrawingIcon = true
const val QRCodeEnabled = false
}

val LocalFeatureVisibilityFlags = staticCompositionLocalOf { FeatureVisibilityFlags }

0 comments on commit be29f25

Please sign in to comment.