Fix unfollow crash
Changelog-Fixed: Fixed crash when unfollowing users Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user