Ensure media are marked sensitive any time there's a content warning (#1728)

Addresses the most critical part of #1725, and may also apply to #1721
This commit is contained in:
Levi Bard 2020-03-17 19:46:32 +01:00 committed by GitHub
parent 6a87e3e352
commit 9c4898117e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -249,7 +249,7 @@ class ComposeViewModel
content,
spoilerText,
statusVisibility.value!!.serverString(),
mediaUris.isNotEmpty() && markMediaAsSensitive.value!!,
mediaUris.isNotEmpty() && (markMediaAsSensitive.value!! || showContentWarning.value!!),
mediaIds,
mediaUris.map { it.toString() },
mediaDescriptions,