From 75a9b4df7fdc59ddfa419bb9f6c6b389dceaf59f Mon Sep 17 00:00:00 2001 From: alltheseas <64376233+alltheseas@users.noreply.github.com> Date: Tue, 16 Jan 2024 21:52:48 -0600 Subject: [PATCH] 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 Signed-off-by: William Casarin --- damus/Views/Events/EventMenu.swift | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/damus/Views/Events/EventMenu.swift b/damus/Views/Events/EventMenu.swift index 183824f5..e7c8a085 100644 --- a/damus/Views/Events/EventMenu.swift +++ b/damus/Views/Events/EventMenu.swift @@ -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) {