Don't reload content all the time (IOS-192)
This commit is contained in:
parent
897fc0d348
commit
86e968fabd
|
@ -56,12 +56,6 @@ extension ProfileHeaderView {
|
||||||
self.account = account
|
self.account = account
|
||||||
self.me = me
|
self.me = me
|
||||||
self.relationship = relationship
|
self.relationship = relationship
|
||||||
|
|
||||||
#warning("TODO: Implement")
|
|
||||||
// $relationshipActionOptionSet
|
|
||||||
// .compactMap { $0.highPriorityAction(except: []) }
|
|
||||||
// .map { $0 == .none }
|
|
||||||
// .assign(to: &$isRelationshipActionButtonHidden)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,13 +84,11 @@ class ProfileViewModel: NSObject {
|
||||||
self.profileAboutViewModel = ProfileAboutViewModel(context: context, account: account)
|
self.profileAboutViewModel = ProfileAboutViewModel(context: context, account: account)
|
||||||
super.init()
|
super.init()
|
||||||
|
|
||||||
// bind user
|
if let domain = account.domain {
|
||||||
$account
|
userIdentifier = MastodonUserIdentifier(domain: domain, userID: account.id)
|
||||||
.map { user -> UserIdentifier? in
|
} else {
|
||||||
guard let domain = account.domain else { return nil }
|
userIdentifier = nil
|
||||||
return MastodonUserIdentifier(domain: domain, userID: account.id)
|
}
|
||||||
}
|
|
||||||
.assign(to: &$userIdentifier)
|
|
||||||
|
|
||||||
// bind userIdentifier
|
// bind userIdentifier
|
||||||
$userIdentifier.assign(to: &postsUserTimelineViewModel.$userIdentifier)
|
$userIdentifier.assign(to: &postsUserTimelineViewModel.$userIdentifier)
|
||||||
|
|
Loading…
Reference in New Issue