Fixing merge issue on reported Types
This commit is contained in:
@@ -317,8 +317,8 @@ fun NoteCompose(
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
} else if (noteEvent is ReportEvent) {
|
} else if (noteEvent is ReportEvent) {
|
||||||
val reportType = noteEvent.reportType.map {
|
val reportType = (noteEvent.reportedPost + noteEvent.reportedAuthor).map {
|
||||||
when (it) {
|
when (it.reportType) {
|
||||||
ReportEvent.ReportType.EXPLICIT -> stringResource(R.string.explicit_content)
|
ReportEvent.ReportType.EXPLICIT -> stringResource(R.string.explicit_content)
|
||||||
ReportEvent.ReportType.NUDITY -> stringResource(R.string.nudity)
|
ReportEvent.ReportType.NUDITY -> stringResource(R.string.nudity)
|
||||||
ReportEvent.ReportType.PROFANITY -> stringResource(R.string.profanity_hateful_speech)
|
ReportEvent.ReportType.PROFANITY -> stringResource(R.string.profanity_hateful_speech)
|
||||||
|
|||||||
Reference in New Issue
Block a user