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

View File

@@ -8,8 +8,8 @@
import Foundation
struct MuteNotify: Notify {
typealias Payload = MuteItem
var payload: MuteItem
typealias Payload = Pubkey
var payload: Payload
}
extension NotifyHandler {
@@ -19,7 +19,7 @@ extension NotifyHandler {
}
extension Notifications {
static func mute(_ target: MuteItem) -> Notifications<MuteNotify> {
static func mute(_ target: Pubkey) -> Notifications<MuteNotify> {
.init(.init(payload: target))
}
}

View File

@@ -8,7 +8,7 @@
import Foundation
struct NewMutesNotify: Notify {
typealias Payload = Set<MuteItem>
typealias Payload = Set<Pubkey>
var payload: Payload
}
@@ -19,7 +19,7 @@ extension NotifyHandler {
}
extension Notifications {
static func new_mutes(_ pubkeys: Set<MuteItem>) -> Notifications<NewMutesNotify> {
static func new_mutes(_ pubkeys: Set<Pubkey>) -> Notifications<NewMutesNotify> {
.init(.init(payload: pubkeys))
}
}

View File

@@ -8,7 +8,7 @@
import Foundation
struct NewUnmutesNotify: Notify {
typealias Payload = Set<MuteItem>
typealias Payload = Set<Pubkey>
var payload: Payload
}
@@ -19,7 +19,7 @@ extension NotifyHandler {
}
extension Notifications {
static func new_unmutes(_ pubkeys: Set<MuteItem>) -> Notifications<NewUnmutesNotify> {
static func new_unmutes(_ pubkeys: Set<Pubkey>) -> Notifications<NewUnmutesNotify> {
.init(.init(payload: pubkeys))
}
}