damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 75a9b4df7fdc59ddfa419bb9f6c6b389dceaf59f
parent a9e97012435af05a42fca05aeb46056e3e3c6f0f
Author: alltheseas <64376233+alltheseas@users.noreply.github.com>
Date:   Tue, 16 Jan 2024 21:52:48 -0600

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>

Diffstat:
Mdamus/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 @@ -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) {