From 9281e72e8c8fa5f803c3e8808e70695417db8bdf Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Sat, 18 Feb 2023 08:02:50 +0100 Subject: [PATCH] Fix status context menu mention for boost --- .../Sources/Status/Row/Subviews/StatusRowContextMenu.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Packages/Status/Sources/Status/Row/Subviews/StatusRowContextMenu.swift b/Packages/Status/Sources/Status/Row/Subviews/StatusRowContextMenu.swift index 298a7e24..717b5d70 100644 --- a/Packages/Status/Sources/Status/Row/Subviews/StatusRowContextMenu.swift +++ b/Packages/Status/Sources/Status/Row/Subviews/StatusRowContextMenu.swift @@ -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") }