-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Farewell, Webpack! Re-injection, Pairing Code login, and 2.24x jumbofix #2816
Open
PurpShell
wants to merge
35
commits into
main
Choose a base branch
from
webpack-exodus
base: main
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+947
−774
Open
Changes from 27 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
c1ae300
fix(webpack-exodus): Added the new patch
PurpShell db72385
fix(webpack-exodus): Fixed v2.3000.x and v2.24
PurpShell 24196db
chore(webpack-exodus): eslint
PurpShell f001408
Merge branch 'main' into webpack-exodus
PurpShell eda1920
fix(webpack-exodus): Fixed Store
PurpShell 467f6d2
Merge branch 'webpack-exodus' of https://github.com/pedroslopez/whats…
PurpShell 21904ef
fix(webpack-exodus): slight store fix
PurpShell 5969892
chore(webpack-exodus): fix example so that I don't crash on every load
PurpShell 1df7e4f
chore: eslint fix
alechkos 77f9c18
fix(webpack-exodus): prevent confusion with build systems
PurpShell 75623c8
Merge branch 'webpack-exodus' of https://github.com/pedroslopez/whats…
PurpShell 5b1e911
fix(webpack-exodus): Add proper groups module
PurpShell 78dc055
fix(webpack-exodus): Fix order queries
PurpShell 269e44e
fix(webpack-exodus): Bad export name
PurpShell 85db3d2
feat(webpack-exodus): Re-injection, No more selectors, Pairing Code auth
PurpShell 27621f1
fix(webpack-exodus): Eslint and better login/logout handling
PurpShell dd75967
fix(webpack-exodus): 2.24 compatibility
PurpShell e7ae65f
revert testing options
PurpShell cad33ec
chore(webpack-exodus): ESLint
PurpShell 452b712
chore(webpack-exodus): final eslint tweak (did not commit with last c…
PurpShell b347aa6
Merge branch 'main' into webpack-exodus
alechkos fac0d81
style: fix broken link in readme file
alechkos 53672d0
Merge branch 'main' into webpack-exodus
alechkos c1d8e04
fix(webpack-exodus): Fix forwarding messages
PurpShell 86d5dc4
Merge branch 'webpack-exodus' of https://github.com/pedroslopez/whats…
PurpShell 650cd0d
fix(webpack-exodus): finish forwarding function
PurpShell 64491be
Making the ESLint god happy
tuyuribr 975819d
Fix window.Store.ProfilePic.profilePicFind is not a function error (#…
seowzhenjun0126 e4c208c
Sanitize, improves and fixes
tuyuribr 252ed8f
make ESList god happy
tuyuribr 2798396
fix getInviteCode for group (#3007) (#3029)
themazim 6df4eef
fixes
tuyuribr 1ecdc42
Update LocalWebCache.js
tuyuribr 96b4742
fix delete on 2.3000 (#3048)
jrocha bbb8d18
Implement bot invoking capabilities (#3009)
MatMercer File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,19 +5,30 @@ const client = new Client({ | |
// proxyAuthentication: { username: 'username', password: 'password' }, | ||
puppeteer: { | ||
// args: ['--proxy-server=proxy-server-that-requires-authentication.example.com'], | ||
headless: false | ||
headless: true, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this should be false in the example ( so the first time user can see what is happening ) |
||
} | ||
}); | ||
|
||
// client initialize does not finish at ready now. | ||
client.initialize(); | ||
|
||
client.on('loading_screen', (percent, message) => { | ||
console.log('LOADING SCREEN', percent, message); | ||
}); | ||
|
||
client.on('qr', (qr) => { | ||
// Pairing code only needs to be requested once | ||
let pairingCodeRequested = false; | ||
client.on('qr', async (qr) => { | ||
// NOTE: This event will not be fired if a session is specified. | ||
console.log('QR RECEIVED', qr); | ||
|
||
// paiuting code example | ||
const pairingCodeEnabled = false; | ||
if (pairingCodeEnabled && !pairingCodeRequested) { | ||
PurpShell marked this conversation as resolved.
Show resolved
Hide resolved
|
||
const pairingCode = await client.requestPairingCode('96170100100'); // enter the target phone number | ||
console.log('Pairing code enabled, code: '+ pairingCode); | ||
pairingCodeRequested = true; | ||
} | ||
}); | ||
|
||
client.on('authenticated', () => { | ||
|
@@ -418,7 +429,7 @@ client.on('message', async msg => { | |
requesterIds: ['[email protected]', '[email protected]'], | ||
sleep: null | ||
}); | ||
} else { | ||
} else if (msg.body === '!pinmsg') { | ||
/** | ||
* Pins a message in a chat, a method takes a number in seconds for the message to be pinned. | ||
* WhatsApp default values for duration to pass to the method are: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add this to make new users catch errors:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.