damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 0744156c0cfc1b94b2ac22b1493d77dd690e0a7e
parent 9a70bcf280a1ca68505307bee3207e00c9e1e45f
Author: William Casarin <jb55@jb55.com>
Date:   Sat,  2 Jul 2022 12:13:06 -0700

Fix unfollow crash

Changelog-Fixed: Fixed crash when unfollowing users
Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mdamus/ContentView.swift | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 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,