Skip to content

Commit

Permalink
swift update
Browse files Browse the repository at this point in the history
  • Loading branch information
rygine committed Sep 26, 2024
1 parent 6202611 commit 931a4de
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ios/Wrappers/MemberWrapper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 931a4de

Please sign in to comment.