From 88173adc9ec02893452fba6ba083ff6f0bb16530 Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Mon, 20 Feb 2023 18:15:45 +0100 Subject: [PATCH] Add indicator for bots accounts --- Packages/Account/Sources/Account/AccountDetailHeaderView.swift | 3 +++ .../Sources/Status/Row/Subviews/StatusRowHeaderView.swift | 1 + 2 files changed, 4 insertions(+) diff --git a/Packages/Account/Sources/Account/AccountDetailHeaderView.swift b/Packages/Account/Sources/Account/AccountDetailHeaderView.swift index 87dbc9d1..3bfa80e8 100644 --- a/Packages/Account/Sources/Account/AccountDetailHeaderView.swift +++ b/Packages/Account/Sources/Account/AccountDetailHeaderView.swift @@ -192,6 +192,9 @@ struct AccountDetailHeaderView: View { private var joinedAtView: some View { if let joinedAt = viewModel.account?.createdAt.asDate { HStack(spacing: 4) { + if account.bot { + Text("🤖") + } Image(systemName: "calendar") Text("account.joined") Text(joinedAt, style: .date) diff --git a/Packages/Status/Sources/Status/Row/Subviews/StatusRowHeaderView.swift b/Packages/Status/Sources/Status/Row/Subviews/StatusRowHeaderView.swift index a4b3e100..00f481c7 100644 --- a/Packages/Status/Sources/Status/Row/Subviews/StatusRowHeaderView.swift +++ b/Packages/Status/Sources/Status/Row/Subviews/StatusRowHeaderView.swift @@ -66,6 +66,7 @@ struct StatusRowHeaderView: View { } private var dateView: Text { + Text(viewModel.status.account.bot ? "🤖 " : "") + Text(status.createdAt.relativeFormatted) + Text(" ⸱ ") + Text(Image(systemName: viewModel.status.visibility.iconName))