mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-03-14 22:22:41 +00:00
More progress
This commit is contained in:
parent
dbc9c1f930
commit
f1ffd66911
4 changed files with 6 additions and 6 deletions
|
@ -219,7 +219,7 @@ struct AccountDetailHeaderView: View {
|
|||
.accessibilityRespondsToUserInteraction(false)
|
||||
movedToView
|
||||
joinedAtView
|
||||
if viewModel.isProAccount && viewModel.relationship?.following == false {
|
||||
if viewModel.account?.isProAccount == true && viewModel.relationship?.following == false {
|
||||
tipView
|
||||
}
|
||||
}
|
||||
|
|
|
@ -82,10 +82,6 @@ import SwiftUI
|
|||
|
||||
var followButtonViewModel: FollowButtonViewModel?
|
||||
|
||||
var isProAccount: Bool {
|
||||
account?.url?.host() == "social-proxy.com"
|
||||
}
|
||||
|
||||
private(set) var account: Account?
|
||||
private var tabTask: Task<Void, Never>?
|
||||
|
||||
|
|
|
@ -71,6 +71,10 @@ public final class Account: Codable, Identifiable, Hashable, Sendable, Equatable
|
|||
header.lastPathComponent != "missing.png"
|
||||
}
|
||||
|
||||
public var isProAccount: Bool {
|
||||
url?.host() == "social-proxy.com"
|
||||
}
|
||||
|
||||
public var fullAccountName: String {
|
||||
"\(acct)@\(url?.host() ?? "")"
|
||||
}
|
||||
|
|
|
@ -109,7 +109,7 @@ import SwiftUI
|
|||
theme.tintColor.opacity(0.15)
|
||||
} else if userMentionned {
|
||||
theme.secondaryBackgroundColor
|
||||
} else if TipedUsers.shared.usersIds.contains(finalStatus.account.id) {
|
||||
} else if status.account.isProAccount {
|
||||
.yellow.opacity(0.4)
|
||||
} else {
|
||||
theme.primaryBackgroundColor
|
||||
|
|
Loading…
Reference in a new issue