ios, android: add author group member role to fix decoding (hidden from UI) (#3429)

This commit is contained in:
spaced4ndy
2023-11-22 18:47:46 +04:00
committed by GitHub
parent 48d7afc959
commit cec0fe2702
5 changed files with 15 additions and 7 deletions

View File

@@ -157,7 +157,7 @@ struct AddGroupMembersViewCommon: View {
private func rolePicker() -> some View {
Picker("New member role", selection: $selectedRole) {
ForEach(GroupMemberRole.allCases) { role in
if role <= groupInfo.membership.memberRole {
if role <= groupInfo.membership.memberRole && role != .author {
Text(role.text)
}
}