Blocks users from Reporting themselves
This commit is contained in:
@@ -527,38 +527,47 @@ fun NoteDropDownMenu(note: Note, popupExpanded: Boolean, onDismiss: () -> Unit,
|
|||||||
DropdownMenuItem(onClick = { accountViewModel.broadcast(note); onDismiss() }) {
|
DropdownMenuItem(onClick = { accountViewModel.broadcast(note); onDismiss() }) {
|
||||||
Text("Broadcast")
|
Text("Broadcast")
|
||||||
}
|
}
|
||||||
Divider()
|
if (note.author != accountViewModel.accountLiveData.value?.account?.userProfile) {
|
||||||
DropdownMenuItem(onClick = { note.author?.let { accountViewModel.hide(it, context) }; onDismiss() }) {
|
Divider()
|
||||||
Text("Block & Hide User")
|
DropdownMenuItem(onClick = {
|
||||||
}
|
note.author?.let {
|
||||||
Divider()
|
accountViewModel.hide(
|
||||||
DropdownMenuItem(onClick = {
|
it,
|
||||||
accountViewModel.report(note, ReportEvent.ReportType.SPAM);
|
context
|
||||||
note.author?.let { accountViewModel.hide(it, context) }
|
)
|
||||||
onDismiss()
|
}; onDismiss()
|
||||||
}) {
|
}) {
|
||||||
Text("Report Spam / Scam")
|
Text("Block & Hide User")
|
||||||
}
|
}
|
||||||
DropdownMenuItem(onClick = {
|
Divider()
|
||||||
accountViewModel.report(note, ReportEvent.ReportType.IMPERSONATION);
|
DropdownMenuItem(onClick = {
|
||||||
note.author?.let { accountViewModel.hide(it, context) }
|
accountViewModel.report(note, ReportEvent.ReportType.SPAM);
|
||||||
onDismiss()
|
note.author?.let { accountViewModel.hide(it, context) }
|
||||||
}) {
|
onDismiss()
|
||||||
Text("Report Impersonation")
|
}) {
|
||||||
}
|
Text("Report Spam / Scam")
|
||||||
DropdownMenuItem(onClick = {
|
}
|
||||||
accountViewModel.report(note, ReportEvent.ReportType.EXPLICIT);
|
DropdownMenuItem(onClick = {
|
||||||
note.author?.let { accountViewModel.hide(it, context) }
|
accountViewModel.report(note, ReportEvent.ReportType.IMPERSONATION);
|
||||||
onDismiss()
|
note.author?.let { accountViewModel.hide(it, context) }
|
||||||
}) {
|
onDismiss()
|
||||||
Text("Report Explicit Content")
|
}) {
|
||||||
}
|
Text("Report Impersonation")
|
||||||
DropdownMenuItem(onClick = {
|
}
|
||||||
accountViewModel.report(note, ReportEvent.ReportType.ILLEGAL);
|
DropdownMenuItem(onClick = {
|
||||||
note.author?.let { accountViewModel.hide(it, context) }
|
accountViewModel.report(note, ReportEvent.ReportType.EXPLICIT);
|
||||||
onDismiss()
|
note.author?.let { accountViewModel.hide(it, context) }
|
||||||
}) {
|
onDismiss()
|
||||||
Text("Report Illegal Behaviour")
|
}) {
|
||||||
|
Text("Report Explicit Content")
|
||||||
|
}
|
||||||
|
DropdownMenuItem(onClick = {
|
||||||
|
accountViewModel.report(note, ReportEvent.ReportType.ILLEGAL);
|
||||||
|
note.author?.let { accountViewModel.hide(it, context) }
|
||||||
|
onDismiss()
|
||||||
|
}) {
|
||||||
|
Text("Report Illegal Behaviour")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user