mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-04 21:57:00 +02:00
Merge branch 'main' of https://github.com/vitorpamplona/amethyst
This commit is contained in:
@@ -107,7 +107,7 @@ fun NoteDropDownMenu(
|
|||||||
var reportDialogShowing by remember { mutableStateOf(false) }
|
var reportDialogShowing by remember { mutableStateOf(false) }
|
||||||
|
|
||||||
var state by remember {
|
var state by remember {
|
||||||
mutableStateOf<DropDownParams>(
|
mutableStateOf(
|
||||||
DropDownParams(
|
DropDownParams(
|
||||||
isFollowingAuthor = false,
|
isFollowingAuthor = false,
|
||||||
isPrivateBookmarkNote = false,
|
isPrivateBookmarkNote = false,
|
||||||
@@ -169,6 +169,16 @@ fun NoteDropDownMenu(
|
|||||||
},
|
},
|
||||||
)
|
)
|
||||||
HorizontalDivider(thickness = DividerThickness)
|
HorizontalDivider(thickness = DividerThickness)
|
||||||
|
} else {
|
||||||
|
DropdownMenuItem(
|
||||||
|
text = { Text(stringRes(R.string.unfollow)) },
|
||||||
|
onClick = {
|
||||||
|
val author = note.author ?: return@DropdownMenuItem
|
||||||
|
accountViewModel.unfollow(author)
|
||||||
|
onDismiss()
|
||||||
|
},
|
||||||
|
)
|
||||||
|
HorizontalDivider(thickness = DividerThickness)
|
||||||
}
|
}
|
||||||
DropdownMenuItem(
|
DropdownMenuItem(
|
||||||
text = { Text(stringRes(R.string.copy_text)) },
|
text = { Text(stringRes(R.string.copy_text)) },
|
||||||
|
Reference in New Issue
Block a user