Revert "mute: migrate Lists.swift to use new MuteItem"

This reverts commit 0f05123ef8.
This commit is contained in:
William Casarin
2024-01-25 12:10:22 -08:00
parent 66fd1dd444
commit a4253a613c
11 changed files with 82 additions and 91 deletions
+1 -13
View File
@@ -72,19 +72,7 @@ struct AddMuteItemView: View {
}
}()
// Actually update & relay the new mute list
if let mute_item {
guard
let full_keypair = state.keypair.to_full(),
let existing_mutelist = state.contacts.mutelist,
let mutelist = create_or_update_mutelist(keypair: full_keypair, mprev: existing_mutelist, to_add: mute_item)
else {
return
}
state.contacts.set_mutelist(mutelist)
state.postbox.send(mutelist)
}
// @TODO: in future patch - actually update & relay the new mute list
new_text = ""