Friends filter for notifications
Changelog-Added: Friends filter for notifications
This commit is contained in:
1 parent
4c44de9276
commit
9bf8349db6
7 files changed
+264
-27
No files matched your search
@@ -52,6 +52,10 @@ struct Zap {
|
||||
public let is_anon: Bool
|
||||
public let private_request: NostrEvent?
|
||||
|
||||
var request_ev: NostrEvent {
|
||||
return private_request ?? self.request.ev
|
||||
}
|
||||
|
||||
public static func from_zap_event(zap_ev: NostrEvent, zapper: String, our_privkey: String?) -> Zap? {
|
||||
/// Make sure that we only create a zap event if it is authorized by the profile or event
|
||||
guard zapper == zap_ev.pubkey else {
|
||||
|
||||
Reference in new issue
Block a user