Revert "mute: migrate Lists.swift to use new MuteItem"
This reverts commit 0f05123ef8.
This commit is contained in:
@@ -798,15 +798,3 @@ func to_reaction_emoji(ev: NostrEvent) -> String? {
|
||||
}
|
||||
}
|
||||
|
||||
extension NostrEvent {
|
||||
/// The mutelist for a given event
|
||||
///
|
||||
/// If the event is not a mutelist it will return `nil`.
|
||||
var mute_list: Set<MuteItem>? {
|
||||
if (self.kind == NostrKind.list_deprecated.rawValue && self.referenced_params.contains(where: { p in p.param.matches_str("mute") })) || self.kind == NostrKind.mute_list.rawValue {
|
||||
return Set(self.referenced_mute_items)
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,8 +17,7 @@ enum NostrKind: UInt32, Codable {
|
||||
case boost = 6
|
||||
case like = 7
|
||||
case chat = 42
|
||||
case mute_list = 10000
|
||||
case list_deprecated = 30000
|
||||
case list = 30000
|
||||
case longform = 30023
|
||||
case zap = 9735
|
||||
case zap_request = 9734
|
||||
|
||||
Reference in New Issue
Block a user