Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorpamplona committed Nov 21, 2024
2 parents 5c5eb53 + 55f0092 commit c89c5eb
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ fun NoteDropDownMenu(
var reportDialogShowing by remember { mutableStateOf(false) }

var state by remember {
mutableStateOf<DropDownParams>(
mutableStateOf(
DropDownParams(
isFollowingAuthor = false,
isPrivateBookmarkNote = false,
Expand Down Expand Up @@ -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)) },
Expand Down

0 comments on commit c89c5eb

Please sign in to comment.