Skip to content

Commit

Permalink
fix: Allowed to send media to non contact
Browse files Browse the repository at this point in the history
  • Loading branch information
edgardmessias committed Nov 11, 2021
1 parent c70f44d commit 643f9b9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/controllers/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ export async function injectApi(page: Page) {
})
.catch(() => false);

await page
.evaluate(() => {
WPP.chat.defaultSendMessageOptions.createChat = true;
})
.catch(() => false);
await page.addScriptTag({
path: require.resolve(
path.join(__dirname, '../../dist/lib/wapi', 'wapi.js')
Expand Down

0 comments on commit 643f9b9

Please sign in to comment.