menu: move mute thread further away from bookmark

Closes: https://github.com/damus-io/damus/pull/1886
Closes: https://github.com/damus-io/damus/pull/1878
Changelog-Changed: Move mute thread in menu so it's not clicked by accident
Reviewed-by: William Casarin <jb55@jb55.com>
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
alltheseas
2024-01-16 21:52:48 -06:00
committed by William Casarin
parent a9e9701243
commit 75a9b4df7f

View File

@@ -111,6 +111,12 @@ struct MenuItems: View {
Label(isBookmarked ? removeBookmarkString : addBookmarkString, image: imageName)
}
Button {
notify(.broadcast(event))
} label: {
Label(NSLocalizedString("Broadcast", comment: "Context menu option for broadcasting the user's note to all of the user's connected relay servers."), image: "globe")
}
// Mute thread - relocated to below Broadcast, as to move further away from Add Bookmark to prevent accidental muted threads
if event.known_kind != .dm {
Button {
self.muted_threads.updateMutedThread(event)
@@ -123,13 +129,6 @@ struct MenuItems: View {
Label(isMutedThread ? unmuteThreadString : muteThreadString, image: imageName)
}
}
Button {
notify(.broadcast(event))
} label: {
Label(NSLocalizedString("Broadcast", comment: "Context menu option for broadcasting the user's note to all of the user's connected relay servers."), image: "globe")
}
// Only allow reporting if logged in with private key and the currently viewed profile is not the logged in profile.
if keypair.pubkey != target_pubkey && keypair.privkey != nil {
Button(role: .destructive) {