diff --git a/damus/ContentView.swift b/damus/ContentView.swift index e58cffd..d9bcb8d 100644 --- a/damus/ContentView.swift +++ b/damus/ContentView.swift @@ -238,11 +238,13 @@ struct ContentView: View { return } - let pk = notif.object as! String guard let damus = self.damus_state else { return } + let target = notif.object as! FollowTarget + let pk = target.pubkey + if unfollow_user(pool: damus.pool, our_contacts: damus.contacts.event, pubkey: damus.pubkey,