Skip to content

Commit

Permalink
Merge pull request #464 from ephemeraHQ/ar/initial-group-data
Browse files Browse the repository at this point in the history
Use Initial Group Data
  • Loading branch information
alexrisch authored Aug 5, 2024
2 parents 7937213 + 564e26a commit e1c3a90
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1783,7 +1783,7 @@ PODS:
- GzipSwift
- LibXMTP (= 0.5.6-beta4)
- web3.swift
- XMTPReactNative (2.2.0):
- XMTPReactNative (2.2.3):
- ExpoModulesCore
- MessagePacker
- secp256k1.swift
Expand Down Expand Up @@ -2358,7 +2358,7 @@ SPEC CHECKSUMS:
UMAppLoader: f17a5ee8e85b536ace0fc254b447a37ed198d57e
web3.swift: 2263d1e12e121b2c42ffb63a5a7beb1acaf33959
XMTP: d364bb93ef30523ba8a66a3e57c3a39f32e06f5e
XMTPReactNative: 4e1103892e0dce84534977c37326878bf9ff2e34
XMTPReactNative: 1cfc4f347ffb9c0a0333cfbbc62e0f804ef39e38
Yoga: eed50599a85bd9f6882a9938d118aed6a397db9c

PODFILE CHECKSUM: d895aabd37f49cd00e2dd5ab00e9cf4511b0bfa2
Expand Down
1 change: 1 addition & 0 deletions queries/useGroupIsActive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const useGroupIsActiveQuery = (account: string, topic: string) => {
return group.isActive();
},
enabled: !!group,
initialData: group?.isGroupActive,
});
};

Expand Down
1 change: 1 addition & 0 deletions queries/useGroupNameQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const useGroupNameQuery = (account: string, topic: string) => {
return group.groupName();
},
enabled: !!group,
initialData: group?.name,
});
};

Expand Down
1 change: 1 addition & 0 deletions queries/useGroupPhotoQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const useGroupPhotoQuery = (account: string, topic: string) => {
return group.groupImageUrlSquare();
},
enabled: !!group,
initialData: group?.imageUrlSquare,
});
};

Expand Down
6 changes: 2 additions & 4 deletions utils/xmtpRN/conversations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ const protocolGroupToStateConversation = async (
groupAddedBy = m.addresses[0];
}
});
const groupName = await group.groupName();
const isActive = await group.isActive();
return {
topic: group.topic,
groupMembers: groupMembersAddresses,
Expand All @@ -106,10 +104,10 @@ const protocolGroupToStateConversation = async (
groupAdmins,
groupSuperAdmins,
groupPermissionLevel: "custom_policy",
groupName,
groupName: group.name,
groupCreator,
groupAddedBy,
isActive,
isActive: group.isGroupActive,
};
};

Expand Down

0 comments on commit e1c3a90

Please sign in to comment.