Browse Source

Fix unfollow crash

Changelog-Fixed: Fixed crash when unfollowing users
Signed-off-by: William Casarin <jb55@jb55.com>
profiles-everywhere
William Casarin 3 years ago
parent
commit
0744156c0c
  1. 4
      damus/ContentView.swift

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

Loading…
Cancel
Save