damus

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

commit 9d22f40a531072b1847f79f5ee2fd85f55dae3b1
parent 0bd40c00187803c1a13764b8815cd23bc41365ee
Author: William Casarin <jb55@jb55.com>
Date:   Fri, 21 Apr 2023 17:15:23 -0700

Remove some cruft

Diffstat:
Mdamus/Models/HomeModel.swift | 13+++----------
1 file changed, 3 insertions(+), 10 deletions(-)

diff --git a/damus/Models/HomeModel.swift b/damus/Models/HomeModel.swift @@ -673,9 +673,7 @@ func print_filters(relay_id: String?, filters groups: [[NostrFilter]]) { func process_metadata_profile(our_pubkey: String, profiles: Profiles, profile: Profile, ev: NostrEvent) { if our_pubkey == ev.pubkey && (profile.deleted ?? false) { - DispatchQueue.main.async { - notify(.deleted_account, ()) - } + notify(.deleted_account, ()) return } @@ -709,20 +707,15 @@ func process_metadata_profile(our_pubkey: String, profiles: Profiles, profile: P // load pfps asap let picture = tprof.profile.picture ?? robohash(ev.pubkey) if URL(string: picture) != nil { - DispatchQueue.main.async { - notify(.profile_updated, ProfileUpdate(pubkey: ev.pubkey, profile: profile)) - } + notify(.profile_updated, ProfileUpdate(pubkey: ev.pubkey, profile: profile)) } let banner = tprof.profile.banner ?? "" if URL(string: banner) != nil { - DispatchQueue.main.async { - notify(.profile_updated, ProfileUpdate(pubkey: ev.pubkey, profile: profile)) - } + notify(.profile_updated, ProfileUpdate(pubkey: ev.pubkey, profile: profile)) } notify(.profile_updated, ProfileUpdate(pubkey: ev.pubkey, profile: profile)) - } func guard_valid_event(events: EventCache, ev: NostrEvent, callback: @escaping () -> Void) {