From 931a4de1af1c3b9ef0a3dea86db5a2c13e425ad9 Mon Sep 17 00:00:00 2001 From: Ry Racherbaumer Date: Thu, 26 Sep 2024 11:11:57 -0500 Subject: [PATCH] swift update --- ios/Wrappers/MemberWrapper.swift | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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,