-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
feat: add Id support for desktop #1240
Conversation
This commit adjusts the ID length check for desktop, fixing the issue where some desktop IDs were incorrectly classified as "unknown." Baileys stopped identifying if a message was from WA Desktop (Based on my observations last Year). This adjustment addresses this issue.
Thanks for your contribution. The next step is to wait for review and approval to merge it to main repository The community can help reacting with a thumb up (:thumbsup:) for approval and rocket (:rocket:) for who has tested it. To test this PR you can run the following command below:
|
Instead of using /^3F/.test(id) ? 'desktop' : /^.{18}$/.test(id) ? 'desktop' Better to use: /^(3F|.{18}$)/.test(id) ? 'desktop'
|
okay |
Done |
@purpshell please check this |
fixed linting @purpshell |
feat: add Id support for desktop (WhiskeySockets#1240) * feat: add Id support for desktop This commit adjusts the ID length check for desktop, fixing the issue where some desktop IDs were incorrectly classified as "unknown." Baileys stopped identifying if a message was from WA Desktop (Based on my observations last Year). This adjustment addresses this issue. * redundancy removed * fix: linting
This commit adjusts the ID length check for desktop, fixing the issue where some desktop IDs were incorrectly classified as "unknown."
Baileys stopped identifying if a message was from WA Desktop (Based on my observations last Year).
This adjustment addresses this issue.
Usage:
Result: