From 68a18f5e405caabda234363f9d75e94e6eb98dc1 Mon Sep 17 00:00:00 2001 From: Charlie Fish Date: Sat, 10 Feb 2024 09:36:50 -0700 Subject: [PATCH] mute: fix bug with duplicate Indefinite items in MuteDurationMenu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `Indefinite` was added to DamusDuration in "Fixing issue with not being able to change mute duration” so this needs to be removed so that there isn’t a repeative item in the menu. Lighting-Address: fishcharlie@strike.me Signed-off-by: Charlie Fish Reviewed-by: William Casarin Link: 20240210163650.42884-6-contact@charlie.fish Signed-off-by: William Casarin --- damus/Views/Muting/MuteDurationMenu.swift | 5 ----- 1 file changed, 5 deletions(-) diff --git a/damus/Views/Muting/MuteDurationMenu.swift b/damus/Views/Muting/MuteDurationMenu.swift index 11498264..04a24bfa 100644 --- a/damus/Views/Muting/MuteDurationMenu.swift +++ b/damus/Views/Muting/MuteDurationMenu.swift @@ -13,11 +13,6 @@ struct MuteDurationMenu: View { var body: some View { Menu { - Button { - action(nil) - } label: { - Text("Indefinite", comment: "Mute a given item indefinitly (until user unmutes it). As opposed to muting the item for a given period of time.") - } ForEach(DamusDuration.allCases, id: \.self) { duration in Button { action(duration)