Files
damus/damus/Notify/MuteNotify.swift
2023-07-30 11:02:44 -07:00

27 lines
456 B
Swift

//
// MuteNotify.swift
// damus
//
// Created by William Casarin on 2023-07-30.
//
import Foundation
struct MuteNotify: Notify {
typealias Payload = Pubkey
var payload: Payload
}
extension NotifyHandler {
static var mute: NotifyHandler<MuteNotify> {
NotifyHandler<MuteNotify>()
}
}
extension Notifications {
static func mute(_ target: Pubkey) -> Notifications<MuteNotify> {
.init(.init(payload: target))
}
}