Adds content sensitivity descriptors to all screens

This commit is contained in:
Vitor Pamplona
2026-03-11 13:47:10 -04:00
parent 9bb87b38f5
commit 7ce13b5ba5
4 changed files with 16 additions and 4 deletions
@@ -255,7 +255,10 @@ private fun GenericCommentPostBody(
verticalAlignment = CenterVertically,
modifier = Modifier.padding(vertical = Size5dp, horizontal = Size10dp),
) {
ContentSensitivityExplainer()
ContentSensitivityExplainer(
description = postViewModel.contentWarningDescription,
onDescriptionChange = { postViewModel.contentWarningDescription = it },
)
}
}
@@ -238,7 +238,10 @@ fun GroupDMScreenContent(
DisplayPreviews(postViewModel, accountViewModel, nav)
if (postViewModel.wantsToMarkAsSensitive) {
ContentSensitivityExplainer()
ContentSensitivityExplainer(
description = postViewModel.contentWarningDescription,
onDescriptionChange = { postViewModel.contentWarningDescription = it },
)
}
if (postViewModel.wantsToAddGeoHash) {
@@ -223,7 +223,10 @@ private fun NewProductBody(
verticalAlignment = CenterVertically,
modifier = Modifier.padding(vertical = Size5dp, horizontal = Size10dp),
) {
ContentSensitivityExplainer()
ContentSensitivityExplainer(
description = postViewModel.contentWarningDescription,
onDescriptionChange = { postViewModel.contentWarningDescription = it },
)
}
}
@@ -212,7 +212,10 @@ fun PublicMessageScreenContent(
DisplayPreviews(postViewModel.urlPreviews, accountViewModel, nav)
if (postViewModel.wantsToMarkAsSensitive) {
ContentSensitivityExplainer()
ContentSensitivityExplainer(
description = postViewModel.contentWarningDescription,
onDescriptionChange = { postViewModel.contentWarningDescription = it },
)
}
if (postViewModel.wantsToAddGeoHash) {