mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-22 08:20:59 +00:00
Composer: Disable in app account switching
This commit is contained in:
parent
a3744525df
commit
881816730c
1 changed files with 8 additions and 5 deletions
|
@ -91,7 +91,6 @@ public struct StatusEditorView: View {
|
|||
}
|
||||
}
|
||||
.onChange(of: currentAccount.account?.id, perform: { _ in
|
||||
viewModel.client = client
|
||||
viewModel.currentAccount = currentAccount.account
|
||||
})
|
||||
.background(theme.primaryBackgroundColor)
|
||||
|
@ -230,12 +229,16 @@ public struct StatusEditorView: View {
|
|||
private var accountHeaderView: some View {
|
||||
if let account = currentAccount.account, !viewModel.mode.isEditing {
|
||||
HStack {
|
||||
AppAccountsSelectorView(routerPath: RouterPath(),
|
||||
accountCreationEnabled: false,
|
||||
avatarSize: .status)
|
||||
if viewModel.mode.isInShareExtension {
|
||||
AppAccountsSelectorView(routerPath: RouterPath(),
|
||||
accountCreationEnabled: false,
|
||||
avatarSize: .status)
|
||||
} else {
|
||||
AvatarView(url: account.avatar, size: .status)
|
||||
}
|
||||
VStack(alignment: .leading, spacing: 4) {
|
||||
privacyMenu
|
||||
Text("@\(account.acct)@\(client.server)")
|
||||
Text("@\(account.acct)@\(appAccounts.currentClient.server)")
|
||||
.font(.scaledFootnote)
|
||||
.foregroundColor(.gray)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue