Skip to content

Commit

Permalink
fix: getGroupInviteLink (await)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonalan7 committed Jun 10, 2021
1 parent 07947c3 commit 7040168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/wapi/functions/get-group-invite-link.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
export async function getGroupInviteLink(chatId) {
var chat = Store.Chat.get(chatId);
if (!chat.isGroup) return '';
const code = Store.GroupInvite.sendQueryGroupInviteCode(chat.id);
const code = await Store.GroupInvite.sendQueryGroupInviteCode(chat.id);
return `https://chat.whatsapp.com/${code}`;
}

1 comment on commit 7040168

@jonalan7
Copy link
Contributor Author

@jonalan7 jonalan7 commented on 7040168 Jun 11, 2021

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.