damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

Zaps+.swift (351B)


      1 //
      2 //  Zaps+.swift
      3 //  damus
      4 //
      5 //  Created by Daniel D’Aquino on 2023-11-27.
      6 //
      7 
      8 import Foundation
      9 
     10 func remove_zap(reqid: ZapRequestId, zapcache: Zaps, evcache: EventCache) {
     11     guard let zap = zapcache.remove_zap(reqid: reqid.reqid) else {
     12         return
     13     }
     14     evcache.get_cache_data(NoteId(zap.target.id)).zaps_model.remove(reqid: reqid)
     15 }