Fix unfollow crash

Changelog-Fixed: Fixed crash when unfollowing users
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2022-07-02 12:13:06 -07:00
parent 9a70bcf280
commit 0744156c0c

View File

@@ -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,