Revert "mute: adding filtering support for MuteItem events"

This reverts commit 61a9e44898.
This commit is contained in:
William Casarin
2024-01-25 12:10:08 -08:00
parent 356ef45b91
commit b5c384da43
11 changed files with 49 additions and 43 deletions
+2 -2
View File
@@ -179,7 +179,7 @@ struct ProfileView: View {
notify(.report(.user(profile.pubkey)))
}
if damus_state.contacts.is_muted(.user(profile.pubkey, nil)) {
if damus_state.contacts.is_muted(profile.pubkey) {
Button(NSLocalizedString("Unmute", comment: "Button to unmute a profile.")) {
guard
let keypair = damus_state.keypair.to_full(),
@@ -197,7 +197,7 @@ struct ProfileView: View {
}
} else {
Button(NSLocalizedString("Mute", comment: "Button to mute a profile."), role: .destructive) {
notify(.mute(.user(profile.pubkey, nil)))
notify(.mute(profile.pubkey))
}
}
}