following and unfollowing

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2022-05-15 11:08:36 -07:00
parent 8da251dc88
commit 7554a87d88
10 changed files with 277 additions and 15 deletions

View File

@@ -12,12 +12,14 @@ class ProfileModel: ObservableObject {
let pubkey: String
let damus: DamusState
@Published var following: Bool
var seen_event: Set<String> = Set()
var sub_id = UUID().description
init(pubkey: String, damus: DamusState) {
self.pubkey = pubkey
self.damus = damus
self.following = damus.contacts.is_friend(pubkey)
}
func unsubscribe() {