From af11ec6a02fc0524bab536c7d07e41311d36dbb6 Mon Sep 17 00:00:00 2001 From: cameronvoell Date: Mon, 5 Aug 2024 06:47:50 -0700 Subject: [PATCH] fix: do not set pinnedframeurl when initializing group object --- .../modules/xmtpreactnativesdk/wrappers/GroupWrapper.kt | 4 ++-- ios/Wrappers/GroupWrapper.swift | 4 ++-- src/lib/Group.ts | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/android/src/main/java/expo/modules/xmtpreactnativesdk/wrappers/GroupWrapper.kt b/android/src/main/java/expo/modules/xmtpreactnativesdk/wrappers/GroupWrapper.kt index 4529ef761..d1e726fa4 100644 --- a/android/src/main/java/expo/modules/xmtpreactnativesdk/wrappers/GroupWrapper.kt +++ b/android/src/main/java/expo/modules/xmtpreactnativesdk/wrappers/GroupWrapper.kt @@ -20,8 +20,8 @@ class GroupWrapper { "isActive" to group.isActive(), "name" to group.name, "imageUrlSquare" to group.imageUrlSquare, - "description" to group.description, - "pinnedFrameUrl" to group.pinnedFrameUrl + "description" to group.description + // "pinnedFrameUrl" to group.pinnedFrameUrl ) } diff --git a/ios/Wrappers/GroupWrapper.swift b/ios/Wrappers/GroupWrapper.swift index 71906faf2..7461c22ee 100644 --- a/ios/Wrappers/GroupWrapper.swift +++ b/ios/Wrappers/GroupWrapper.swift @@ -22,8 +22,8 @@ struct GroupWrapper { "isActive": try group.isActive(), "name": try group.groupName(), "imageUrlSquare": try group.groupImageUrlSquare(), - "description": try group.groupDescription(), - "pinnedFrameUrl": try group.groupPinnedFrameUrl() + "description": try group.groupDescription() + // "pinnedFrameUrl": try group.groupPinnedFrameUrl() ] } diff --git a/src/lib/Group.ts b/src/lib/Group.ts index 3be634d22..96de1fcfe 100644 --- a/src/lib/Group.ts +++ b/src/lib/Group.ts @@ -30,7 +30,7 @@ export class Group< isGroupActive: boolean imageUrlSquare: string description: string - pinnedFrameUrl: string + // pinnedFrameUrl: string constructor( client: XMTP.Client, @@ -44,7 +44,7 @@ export class Group< isGroupActive: boolean imageUrlSquare: string description: string - pinnedFrameUrl: string + // pinnedFrameUrl: string } ) { this.client = client @@ -57,7 +57,7 @@ export class Group< this.isGroupActive = params.isGroupActive this.imageUrlSquare = params.imageUrlSquare this.description = params.description - this.pinnedFrameUrl = params.pinnedFrameUrl + // this.pinnedFrameUrl = params.pinnedFrameUrl } /**