NewUnmutesNotify.swift (489B)
1 // 2 // NewUnmutesNotify.swift 3 // damus 4 // 5 // Created by William Casarin on 2023-07-30. 6 // 7 8 import Foundation 9 10 struct NewUnmutesNotify: Notify { 11 typealias Payload = Set<MuteItem> 12 var payload: Payload 13 } 14 15 extension NotifyHandler { 16 static var new_unmutes: NotifyHandler<NewUnmutesNotify> { 17 .init() 18 } 19 } 20 21 extension Notifications { 22 static func new_unmutes(_ pubkeys: Set<MuteItem>) -> Notifications<NewUnmutesNotify> { 23 .init(.init(payload: pubkeys)) 24 } 25 }