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

View File

@@ -157,11 +157,8 @@ class HomeModel {
case .metadata:
// profile metadata processing is handled by nostrdb
break
case .list_deprecated:
case .list:
handle_list_event(ev)
case .mute_list:
// @TODO: this will be implemented in a future patch
break
case .boost:
handle_boost_event(sub_id: sub_id, ev)
case .like:
@@ -464,7 +461,7 @@ class HomeModel {
var our_contacts_filter = NostrFilter(kinds: [.contacts, .metadata])
our_contacts_filter.authors = [damus_state.pubkey]
var our_blocklist_filter = NostrFilter(kinds: [.list_deprecated])
var our_blocklist_filter = NostrFilter(kinds: [.list])
our_blocklist_filter.parameter = ["mute"]
our_blocklist_filter.authors = [damus_state.pubkey]

View File

@@ -145,13 +145,6 @@ enum MuteItem: Hashable, Equatable {
}
}
// - MARK: TagConvertible
extension MuteItem: TagConvertible {
static func from_tag(tag: TagSequence) -> MuteItem? {
return MuteItem(tag.strings())
}
}
extension Collection where Element == MuteItem {
/// Check if an event is muted given a collection of ``MutedItem``.
///