Fix unfollow crash
Changelog-Fixed: Fixed crash when unfollowing users Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
1 parent
9a70bcf280
commit
0744156c0c
1 file changed
+3
-1
@@ -238,11 +238,13 @@ struct ContentView: View {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
let pk = notif.object as! String
|
|
||||||
guard let damus = self.damus_state else {
|
guard let damus = self.damus_state else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let target = notif.object as! FollowTarget
|
||||||
|
let pk = target.pubkey
|
||||||
|
|
||||||
if unfollow_user(pool: damus.pool,
|
if unfollow_user(pool: damus.pool,
|
||||||
our_contacts: damus.contacts.event,
|
our_contacts: damus.contacts.event,
|
||||||
pubkey: damus.pubkey,
|
pubkey: damus.pubkey,
|
||||||
|
|||||||
Reference in new issue
Block a user