Revert "mute: updating UI to support new mute list"

This reverts commit 75d66434f3.
This commit is contained in:
William Casarin
2024-01-25 12:10:03 -08:00
parent f5d1401032
commit 356ef45b91
9 changed files with 73 additions and 141 deletions
+2 -5
View File
@@ -196,11 +196,8 @@ struct ProfileView: View {
damus_state.postbox.send(new_ev)
}
} else {
MuteDurationMenu { duration in
notify(.mute(.user(profile.pubkey, duration?.date_from_now)))
} label: {
Text(NSLocalizedString("Mute", comment: "Button to mute a profile."))
.foregroundStyle(.red)
Button(NSLocalizedString("Mute", comment: "Button to mute a profile."), role: .destructive) {
notify(.mute(.user(profile.pubkey, nil)))
}
}
}