Add ndb subscription tests

Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
This commit is contained in:
Daniel D’Aquino
2025-09-24 14:06:02 -07:00
parent e113dee95e
commit 940b83f5c4
6 changed files with 219 additions and 17 deletions
@@ -561,8 +561,8 @@ class HomeModel: ContactsDelegate {
try? borrow { ev in
event = ev.toOwned()
}
guard let event else { return }
await self.process_event(ev: event, context: .notifications)
guard let theEvent = event else { return }
await self.process_event(ev: theEvent, context: .notifications)
case .eose:
guard let txn = NdbTxn(ndb: damus_state.ndb) else { return }
load_profiles(context: "notifications", load: .from_keys(notifications.uniq_pubkeys()), damus_state: damus_state, txn: txn)