Adds support for MOD reports

This commit is contained in:
Vitor Pamplona 2024-08-20 15:07:28 -04:00
parent 7bd3e0beab
commit b0c33808e6
4 changed files with 9 additions and 1 deletions

View File

@ -58,7 +58,8 @@ fun RenderReport(
ReportEvent.ReportType.SPAM -> stringRes(R.string.spam)
ReportEvent.ReportType.IMPERSONATION -> stringRes(R.string.impersonation)
ReportEvent.ReportType.ILLEGAL -> stringRes(R.string.illegal_behavior)
ReportEvent.ReportType.MALWARE -> stringRes(R.string.report_malware)
ReportEvent.ReportType.MALWARE -> stringRes(R.string.malware)
ReportEvent.ReportType.MOD -> stringRes(R.string.mod)
ReportEvent.ReportType.OTHER -> stringRes(R.string.other)
}
}.toSet()

View File

@ -81,6 +81,7 @@ fun ReportNoteDialog(
Pair(ReportEvent.ReportType.NUDITY, stringRes(R.string.report_dialog_nudity)),
Pair(ReportEvent.ReportType.ILLEGAL, stringRes(R.string.report_dialog_illegal)),
Pair(ReportEvent.ReportType.MALWARE, stringRes(R.string.report_malware)),
Pair(ReportEvent.ReportType.MOD, stringRes(R.string.report_mod)),
)
val reasonOptions = remember { reportTypes.map { TitleExplainer(it.second) }.toImmutableList() }

View File

@ -39,6 +39,11 @@
<string name="report_explicit_content">Report Explicit Content</string>
<string name="report_illegal_behaviour">Report Illegal Behaviour</string>
<string name="report_malware">Report Malware</string>
<string name="report_mod">Report Mod</string>
<string name="malware">Malware</string>
<string name="mod">Mod</string>
<string name="login_with_a_private_key_to_be_able_to_reply">You are using a public key and public keys are read-only. Login with a Private key to be able to reply</string>
<string name="login_with_a_private_key_to_be_able_to_boost_posts">You are using a public key and public keys are read-only. Login with a Private key to be able to boost posts</string>
<string name="login_with_a_private_key_to_like_posts">You are using a public key and public keys are read-only. Login with a Private key to like posts</string>

View File

@ -130,6 +130,7 @@ class ReportEvent(
NUDITY,
PROFANITY,
MALWARE,
MOD,
OTHER,
}
}