Add lock icon to protected account (#1011)

Closes #915
This commit is contained in:
Peter-Josef Meisch 2023-02-22 19:00:39 +01:00 committed by GitHub
parent bdf5d3c783
commit fc63830b27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -197,6 +197,9 @@ struct AccountDetailHeaderView: View {
if account.bot {
Text("🤖")
}
if account.locked{
Text("🔒")
}
Image(systemName: "calendar")
Text("account.joined")
Text(joinedAt, style: .date)

View File

@ -73,6 +73,7 @@ struct StatusRowHeaderView: View {
private var dateView: Text {
Text(viewModel.status.account.bot ? "🤖 " : "") +
Text(viewModel.status.account.locked ? "🔒 " : "") +
Text(status.createdAt.relativeFormatted) +
Text("") +
Text(Image(systemName: viewModel.status.visibility.iconName))