Fix status context menu mention for boost

This commit is contained in:
Thomas Ricouard 2023-02-18 08:02:50 +01:00
parent 9bc65d5563
commit 9281e72e8c
1 changed files with 3 additions and 3 deletions

View File

@ -121,14 +121,14 @@ struct StatusRowContextMenu: View {
}
} else {
if !viewModel.isRemote {
Section(viewModel.status.account.acct) {
Section(viewModel.status.reblog?.account.acct ?? viewModel.status.account.acct) {
Button {
viewModel.routerPath.presentedSheet = .mentionStatusEditor(account: viewModel.status.account, visibility: .pub)
viewModel.routerPath.presentedSheet = .mentionStatusEditor(account: viewModel.status.reblog?.account ?? viewModel.status.account, visibility: .pub)
} label: {
Label("status.action.mention", systemImage: "at")
}
Button {
viewModel.routerPath.presentedSheet = .mentionStatusEditor(account: viewModel.status.account, visibility: .direct)
viewModel.routerPath.presentedSheet = .mentionStatusEditor(account: viewModel.status.reblog?.account ?? viewModel.status.account, visibility: .direct)
} label: {
Label("status.action.message", systemImage: "tray.full")
}