@@ -924,8 +924,7 @@ public class XMTPModule: Module {
924924 permissions: permissionLevel,
925925 name: createGroupParams. groupName,
926926 imageUrlSquare: createGroupParams. groupImageUrlSquare,
927- description: createGroupParams. groupDescription,
928- pinnedFrameUrl: createGroupParams. groupPinnedFrameUrl
927+ description: createGroupParams. groupDescription
929928 )
930929 return try await GroupWrapper . encode ( group, client: client)
931930 } catch {
@@ -957,8 +956,7 @@ public class XMTPModule: Module {
957956 permissionPolicySet: permissionPolicySet,
958957 name: createGroupParams. groupName,
959958 imageUrlSquare: createGroupParams. groupImageUrlSquare,
960- description: createGroupParams. groupDescription,
961- pinnedFrameUrl: createGroupParams. groupPinnedFrameUrl
959+ description: createGroupParams. groupDescription
962960 )
963961 return try await GroupWrapper . encode ( group, client: client)
964962 } catch {
@@ -995,8 +993,7 @@ public class XMTPModule: Module {
995993 permissions: permissionLevel,
996994 name: createGroupParams. groupName,
997995 imageUrlSquare: createGroupParams. groupImageUrlSquare,
998- description: createGroupParams. groupDescription,
999- pinnedFrameUrl: createGroupParams. groupPinnedFrameUrl
996+ description: createGroupParams. groupDescription
1000997 )
1001998 return try await GroupWrapper . encode ( group, client: client)
1002999 } catch {
@@ -1028,8 +1025,7 @@ public class XMTPModule: Module {
10281025 permissionPolicySet: permissionPolicySet,
10291026 name: createGroupParams. groupName,
10301027 imageUrlSquare: createGroupParams. groupImageUrlSquare,
1031- description: createGroupParams. groupDescription,
1032- pinnedFrameUrl: createGroupParams. groupPinnedFrameUrl
1028+ description: createGroupParams. groupDescription
10331029 )
10341030 return try await GroupWrapper . encode ( group, client: client)
10351031 } catch {
@@ -1292,37 +1288,6 @@ public class XMTPModule: Module {
12921288 groupDescription: description)
12931289 }
12941290
1295- AsyncFunction ( " groupPinnedFrameUrl " ) {
1296- ( installationId: String , id: String ) -> String in
1297- guard
1298- let client = await clientsManager. getClient ( key: installationId)
1299- else {
1300- throw Error . noClient
1301- }
1302- guard let group = try client. findGroup ( groupId: id) else {
1303- throw Error . conversationNotFound (
1304- " no conversation found for \( id) " )
1305- }
1306-
1307- return try group. groupPinnedFrameUrl ( )
1308- }
1309-
1310- AsyncFunction ( " updateGroupPinnedFrameUrl " ) {
1311- ( installationId: String , id: String , pinnedFrameUrl: String ) in
1312- guard
1313- let client = await clientsManager. getClient ( key: installationId)
1314- else {
1315- throw Error . noClient
1316- }
1317- guard let group = try client. findGroup ( groupId: id) else {
1318- throw Error . conversationNotFound (
1319- " no conversation found for \( id) " )
1320- }
1321-
1322- try await group. updateGroupPinnedFrameUrl (
1323- groupPinnedFrameUrl: pinnedFrameUrl)
1324- }
1325-
13261291 AsyncFunction ( " isGroupActive " ) {
13271292 ( installationId: String , id: String ) -> Bool in
13281293 guard
@@ -1606,23 +1571,6 @@ public class XMTPModule: Module {
16061571 permission: newPermission) )
16071572 }
16081573
1609- AsyncFunction ( " updateGroupPinnedFrameUrlPermission " ) {
1610- ( clientInstallationId: String , id: String , newPermission: String ) in
1611- guard
1612- let client = await clientsManager. getClient (
1613- key: clientInstallationId)
1614- else {
1615- throw Error . noClient
1616- }
1617- guard let group = try client. findGroup ( groupId: id) else {
1618- throw Error . conversationNotFound (
1619- " no conversation found for \( id) " )
1620- }
1621- try await group. updateGroupPinnedFrameUrlPermission (
1622- newPermissionOption: getPermissionOption (
1623- permission: newPermission) )
1624- }
1625-
16261574 AsyncFunction ( " permissionPolicySet " ) {
16271575 ( installationId: String , id: String ) async throws -> String in
16281576 guard
0 commit comments