From c4758a88d83583a5e99cc672d604683b820a7b33 Mon Sep 17 00:00:00 2001 From: Naomi Plasterer Date: Mon, 11 Nov 2024 20:52:06 -0800 Subject: [PATCH] update typo --- ios/XMTPModule.swift | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ios/XMTPModule.swift b/ios/XMTPModule.swift index c83ee6ae7..191a81a93 100644 --- a/ios/XMTPModule.swift +++ b/ios/XMTPModule.swift @@ -1001,7 +1001,7 @@ public class XMTPModule: Module { AsyncFunction("isAdmin") { (clientInboxId: String, id: String, inboxId: String) -> Bool in - guard let client = await clientsManager.getClient(key: inboxId) + guard let client = await clientsManager.getClient(key: clientInboxId) else { throw Error.noClient } @@ -1014,7 +1014,7 @@ public class XMTPModule: Module { AsyncFunction("isSuperAdmin") { (clientInboxId: String, id: String, inboxId: String) -> Bool in - guard let client = await clientsManager.getClient(key: inboxId) + guard let client = await clientsManager.getClient(key: clientInboxId) else { throw Error.noClient } @@ -1053,7 +1053,7 @@ public class XMTPModule: Module { AsyncFunction("addAdmin") { (clientInboxId: String, id: String, inboxId: String) in - guard let client = await clientsManager.getClient(key: inboxId) + guard let client = await clientsManager.getClient(key: clientInboxId) else { throw Error.noClient } @@ -1066,7 +1066,7 @@ public class XMTPModule: Module { AsyncFunction("addSuperAdmin") { (clientInboxId: String, id: String, inboxId: String) in - guard let client = await clientsManager.getClient(key: inboxId) + guard let client = await clientsManager.getClient(key: clientInboxId) else { throw Error.noClient } @@ -1079,7 +1079,7 @@ public class XMTPModule: Module { AsyncFunction("removeAdmin") { (clientInboxId: String, id: String, inboxId: String) in - guard let client = await clientsManager.getClient(key: inboxId) + guard let client = await clientsManager.getClient(key: clientInboxId) else { throw Error.noClient } @@ -1092,7 +1092,7 @@ public class XMTPModule: Module { AsyncFunction("removeSuperAdmin") { (clientInboxId: String, id: String, inboxId: String) in - guard let client = await clientsManager.getClient(key: inboxId) + guard let client = await clientsManager.getClient(key: clientInboxId) else { throw Error.noClient }