Blocks users from Reporting themselves
This commit is contained in:
@@ -527,8 +527,16 @@ fun NoteDropDownMenu(note: Note, popupExpanded: Boolean, onDismiss: () -> Unit,
|
|||||||
DropdownMenuItem(onClick = { accountViewModel.broadcast(note); onDismiss() }) {
|
DropdownMenuItem(onClick = { accountViewModel.broadcast(note); onDismiss() }) {
|
||||||
Text("Broadcast")
|
Text("Broadcast")
|
||||||
}
|
}
|
||||||
|
if (note.author != accountViewModel.accountLiveData.value?.account?.userProfile) {
|
||||||
Divider()
|
Divider()
|
||||||
DropdownMenuItem(onClick = { note.author?.let { accountViewModel.hide(it, context) }; onDismiss() }) {
|
DropdownMenuItem(onClick = {
|
||||||
|
note.author?.let {
|
||||||
|
accountViewModel.hide(
|
||||||
|
it,
|
||||||
|
context
|
||||||
|
)
|
||||||
|
}; onDismiss()
|
||||||
|
}) {
|
||||||
Text("Block & Hide User")
|
Text("Block & Hide User")
|
||||||
}
|
}
|
||||||
Divider()
|
Divider()
|
||||||
@@ -562,3 +570,4 @@ fun NoteDropDownMenu(note: Note, popupExpanded: Boolean, onDismiss: () -> Unit,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user