commit 7ecb9aad62473cf4a55b5c7963048834560e6aa4
parent d0daa9fafa1c7ac9e12b51b5d09620913877b0d0
Author: William Casarin <jb55@jb55.com>
Date: Fri, 6 Oct 2023 10:40:10 -0700
nostrdb: only process sent note events, not subs
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/damus/Nostr/RelayPool.swift b/damus/Nostr/RelayPool.swift
@@ -219,7 +219,7 @@ class RelayPool {
// send to local relay (nostrdb)
switch req {
case .typical(let r):
- if let rstr = make_nostr_req(r) {
+ if case .event = r, let rstr = make_nostr_req(r) {
ndb.process_client_event(rstr)
}
case .custom(let string):