Add indicator for bots accounts

This commit is contained in:
Thomas Ricouard 2023-02-20 18:15:45 +01:00
parent 5e81eda3ed
commit 88173adc9e
2 changed files with 4 additions and 0 deletions

View file

@ -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)

View file

@ -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))