Skip to content

Commit

Permalink
menu: move mute thread further away from bookmark
Browse files Browse the repository at this point in the history
Closes: #1886
Closes: #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>
  • Loading branch information
alltheseas authored and jb55 committed Jan 17, 2024
1 parent a9e9701 commit 75a9b4d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions damus/Views/Events/EventMenu.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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) {
Expand Down

0 comments on commit 75a9b4d

Please sign in to comment.