Skip to content

Commit 75a9b4d

Browse files
alltheseasjb55
authored andcommittedJan 17, 2024
menu: move mute thread further away from bookmark
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>
1 parent a9e9701 commit 75a9b4d

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed
 

‎damus/Views/Events/EventMenu.swift

+6-7
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ struct MenuItems: View {
111111
Label(isBookmarked ? removeBookmarkString : addBookmarkString, image: imageName)
112112
}
113113

114+
Button {
115+
notify(.broadcast(event))
116+
} label: {
117+
Label(NSLocalizedString("Broadcast", comment: "Context menu option for broadcasting the user's note to all of the user's connected relay servers."), image: "globe")
118+
}
119+
// Mute thread - relocated to below Broadcast, as to move further away from Add Bookmark to prevent accidental muted threads
114120
if event.known_kind != .dm {
115121
Button {
116122
self.muted_threads.updateMutedThread(event)
@@ -123,13 +129,6 @@ struct MenuItems: View {
123129
Label(isMutedThread ? unmuteThreadString : muteThreadString, image: imageName)
124130
}
125131
}
126-
127-
Button {
128-
notify(.broadcast(event))
129-
} label: {
130-
Label(NSLocalizedString("Broadcast", comment: "Context menu option for broadcasting the user's note to all of the user's connected relay servers."), image: "globe")
131-
}
132-
133132
// Only allow reporting if logged in with private key and the currently viewed profile is not the logged in profile.
134133
if keypair.pubkey != target_pubkey && keypair.privkey != nil {
135134
Button(role: .destructive) {

0 commit comments

Comments
 (0)