Fixing merge issue on reported Types

This commit is contained in:
Vitor Pamplona
2023-03-01 10:07:59 -05:00
parent 51ce424352
commit f4b366c4bd
@@ -317,8 +317,8 @@ fun NoteCompose(
)
}
} else if (noteEvent is ReportEvent) {
val reportType = noteEvent.reportType.map {
when (it) {
val reportType = (noteEvent.reportedPost + noteEvent.reportedAuthor).map {
when (it.reportType) {
ReportEvent.ReportType.EXPLICIT -> stringResource(R.string.explicit_content)
ReportEvent.ReportType.NUDITY -> stringResource(R.string.nudity)
ReportEvent.ReportType.PROFANITY -> stringResource(R.string.profanity_hateful_speech)