fix: update requestPairingCode#72
Open
joaosouz4dev wants to merge 10 commits intocanove:mainfrom
Open
Conversation
Refactor requestPairingCode to include ephemeral key generation and handle push notification visibility.
…nd improve structure Refactor requestPairingCode to allow for optional custom pairing codes, enforce length validation, and streamline the process of sending the pairing request. Update AuthenticationCreds type to include pairingRef.
…rence Update the requestPairingCode function to generate an ephemeral key pair and store the pairing reference for improved security and functionality. Modify AuthenticationCreds to include pairingRef and ensure proper handling of push notification visibility.
Introduce a mapping for custom platform names to valid OS names in the socket module. This enhancement ensures that the platform display correctly reflects the operating system when connecting to WhatsApp servers. Additionally, update the build commands in the settings file to include yarn support.
Enhance the handling of link_code_companion_reg notifications by adding checks for the presence of required credentials and buffers. Introduce logging for incomplete notifications to aid in debugging. Additionally, update the .gitignore to include the .claude directory and modify build commands in settings.local.json to support npm.
Add a check in the sendMessageAck function to skip acknowledgment if the WebSocket connection is not open, improving error handling and logging for message delivery.
…andling Refactor the handling of link_code_companion_reg notifications by enhancing the readability of conditional checks and improving logging for missing credentials and buffers. This change aims to facilitate debugging and maintain code clarity.
Owner
|
Consegue explicar a motivação? |
Author
Sim, claro, estava falhando e nem chegava a notificação push. |
Owner
|
acabei de testar e funcionou normalmente. chegou a push e depois de digitar o código pareou normal. |
Author
|
Fiz para um cliente usando um projeto costumizado: https://github.com/joaosouz4dev/evo-whaileys/tree/whaileys |
Author
|
{ |
Enhance the AuthenticationCreds type by making the pairingEphemeralKeyPair readonly and adding routingInfo and additionalData properties. Update SignalDataTypeMap to change session and sender-key types to Uint8Array, and introduce new types for lid-mapping and device-list. These changes improve type safety and clarity in the codebase.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.