Skip to content

Commit

Permalink
fix: queryGroupInviteInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
jonalan7 committed Jun 10, 2021
1 parent 7040168 commit 48e1086
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib/wapi/functions/get-group-info-from-invite-link.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
4 changes: 4 additions & 0 deletions src/lib/wapi/store/store-objects.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
},
];

1 comment on commit 48e1086

@jonalan7
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.