Add a mention / reply button on user profile navigation

This commit is contained in:
Thomas Ricouard 2023-07-18 08:21:34 +02:00
parent 58debff490
commit 3525d94f71

View file

@ -305,7 +305,18 @@ public struct AccountDetailView: View {
@ToolbarContentBuilder
private var toolbarContent: some ToolbarContent {
ToolbarItem(placement: .navigationBarTrailing) {
ToolbarItemGroup(placement: .navigationBarTrailing) {
if !viewModel.isCurrentUser {
Button {
if let account = viewModel.account {
routerPath.presentedSheet = .mentionStatusEditor(account: account,
visibility: preferences.postVisibility)
}
} label: {
Image(systemName: "arrowshape.turn.up.left")
}
}
Menu {
AccountDetailContextMenu(viewModel: viewModel)