nwc: clear the zapper cache for our pubkey when we attach a new wallet

This commit is contained in:
William Casarin
2023-05-10 13:23:56 -07:00
parent f77a7bcb29
commit bb32d72903
2 changed files with 12 additions and 0 deletions

View File

@@ -52,3 +52,9 @@ class Profiles {
}
}
}
func invalidate_zapper_cache(pubkey: String, profiles: Profiles, lnurl: LNUrls) {
profiles.zappers.removeValue(forKey: pubkey)
lnurl.endpoints.removeValue(forKey: pubkey)
}