diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/elements/DropDownMenu.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/elements/DropDownMenu.kt index accda0ccd..37f3fd944 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/elements/DropDownMenu.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/elements/DropDownMenu.kt @@ -107,7 +107,7 @@ fun NoteDropDownMenu( var reportDialogShowing by remember { mutableStateOf(false) } var state by remember { - mutableStateOf( + mutableStateOf( DropDownParams( isFollowingAuthor = false, isPrivateBookmarkNote = false, @@ -169,6 +169,16 @@ fun NoteDropDownMenu( }, ) 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( text = { Text(stringRes(R.string.copy_text)) },