diff --git a/src/lib/wapi/functions/get-group-info-from-invite-link.js b/src/lib/wapi/functions/get-group-info-from-invite-link.js index 0d1d47a00..82d62fc4a 100644 --- a/src/lib/wapi/functions/get-group-info-from-invite-link.js +++ b/src/lib/wapi/functions/get-group-info-from-invite-link.js @@ -53,8 +53,6 @@ MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNNNNMMNNNMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM */ export async function getGroupInfoFromInviteLink(inviteCode) { - // await Store.GroupInvite.queryGroupInviteCode(inviteCode); - var groupInfo = await Store.WapQuery.groupInviteInfo(inviteCode); - + var groupInfo = await Store.infoGroup.queryGroupInviteInfo(inviteCode); return groupInfo; } diff --git a/src/lib/wapi/store/store-objects.js b/src/lib/wapi/store/store-objects.js index 9cab7a88c..143333529 100644 --- a/src/lib/wapi/store/store-objects.js +++ b/src/lib/wapi/store/store-objects.js @@ -418,4 +418,8 @@ export const storeObjects = [ conditions: (module) => module.default && module.default.getOrCreateURL ? module.default : null, }, + { + id: 'infoGroup', + conditions: (module) => (module.queryGroupInviteInfo ? module : null), + }, ];