@@ -924,8 +924,7 @@ public class XMTPModule: Module {
924
924
permissions: permissionLevel,
925
925
name: createGroupParams. groupName,
926
926
imageUrlSquare: createGroupParams. groupImageUrlSquare,
927
- description: createGroupParams. groupDescription,
928
- pinnedFrameUrl: createGroupParams. groupPinnedFrameUrl
927
+ description: createGroupParams. groupDescription
929
928
)
930
929
return try await GroupWrapper . encode ( group, client: client)
931
930
} catch {
@@ -957,8 +956,7 @@ public class XMTPModule: Module {
957
956
permissionPolicySet: permissionPolicySet,
958
957
name: createGroupParams. groupName,
959
958
imageUrlSquare: createGroupParams. groupImageUrlSquare,
960
- description: createGroupParams. groupDescription,
961
- pinnedFrameUrl: createGroupParams. groupPinnedFrameUrl
959
+ description: createGroupParams. groupDescription
962
960
)
963
961
return try await GroupWrapper . encode ( group, client: client)
964
962
} catch {
@@ -995,8 +993,7 @@ public class XMTPModule: Module {
995
993
permissions: permissionLevel,
996
994
name: createGroupParams. groupName,
997
995
imageUrlSquare: createGroupParams. groupImageUrlSquare,
998
- description: createGroupParams. groupDescription,
999
- pinnedFrameUrl: createGroupParams. groupPinnedFrameUrl
996
+ description: createGroupParams. groupDescription
1000
997
)
1001
998
return try await GroupWrapper . encode ( group, client: client)
1002
999
} catch {
@@ -1028,8 +1025,7 @@ public class XMTPModule: Module {
1028
1025
permissionPolicySet: permissionPolicySet,
1029
1026
name: createGroupParams. groupName,
1030
1027
imageUrlSquare: createGroupParams. groupImageUrlSquare,
1031
- description: createGroupParams. groupDescription,
1032
- pinnedFrameUrl: createGroupParams. groupPinnedFrameUrl
1028
+ description: createGroupParams. groupDescription
1033
1029
)
1034
1030
return try await GroupWrapper . encode ( group, client: client)
1035
1031
} catch {
@@ -1292,37 +1288,6 @@ public class XMTPModule: Module {
1292
1288
groupDescription: description)
1293
1289
}
1294
1290
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
-
1326
1291
AsyncFunction ( " isGroupActive " ) {
1327
1292
( installationId: String , id: String ) -> Bool in
1328
1293
guard
@@ -1606,23 +1571,6 @@ public class XMTPModule: Module {
1606
1571
permission: newPermission) )
1607
1572
}
1608
1573
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
-
1626
1574
AsyncFunction ( " permissionPolicySet " ) {
1627
1575
( installationId: String , id: String ) async throws -> String in
1628
1576
guard
0 commit comments