add icons for muted and blocked profiles (#1085)

This commit is contained in:
Peter-Josef Meisch 2023-02-27 06:37:39 +01:00 committed by GitHub
parent 90fce88ad7
commit 6dae90f227
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,6 +144,14 @@ struct AccountDetailHeaderView: View {
Text(Image(systemName: "lock.fill"))
.font(.footnote)
}
if viewModel.relationship?.blocking == true {
Text(Image(systemName: "person.crop.circle.badge.xmark.fill"))
.font(.footnote)
}
if viewModel.relationship?.muting == true {
Text(Image(systemName: "speaker.slash.fill"))
.font(.footnote)
}
}
Text("@\(account.acct)")
.font(.scaledCallout)