diff --git a/ios/Wrappers/MemberWrapper.swift b/ios/Wrappers/MemberWrapper.swift index 5bd59d184..1c9613911 100644 --- a/ios/Wrappers/MemberWrapper.swift +++ b/ios/Wrappers/MemberWrapper.swift @@ -11,13 +11,14 @@ import XMTP // Wrapper around XMTP.Member to allow passing these objects back into react native. struct MemberWrapper { static func encodeToObj(_ member: XMTP.Member) throws -> [String: Any] { - let permissionString = switch member.permissionLevel { + var permissionString = "member" + switch member.permissionLevel { case .Member: - "member" + permissionString = "member" case .Admin: - "admin" + permissionString = "admin" case .SuperAdmin: - "super_admin" + permissionString = "super_admin" } return [ "inboxId": member.inboxId,