ui: show observer role in list of members (#3679)

This commit is contained in:
spaced4ndy
2024-01-12 20:54:51 +04:00
committed by GitHub
parent 516410a899
commit 135e735dd4
2 changed files with 2 additions and 2 deletions

View File

@@ -227,7 +227,7 @@ struct GroupChatInfoView: View {
}
Spacer()
let role = member.memberRole
if role == .owner || role == .admin {
if [.owner, .admin, .observer].contains(role) {
Text(member.memberRole.text)
.foregroundColor(.secondary)
}