-
Notifications
You must be signed in to change notification settings - Fork 694
Add support for WhatsApp private chats in whatsappmulti bridge #2218
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
Open
redbullpeter
wants to merge
13
commits into
42wim:master
Choose a base branch
from
redbullpeter:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
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.
+114
−35
Conversation
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
Updated whatsmeow from commit 0b502af to ad7a618, which includes breaking API changes requiring context.Context parameters. Changes: - Updated GetJoinedGroups() to include context.Background() - Updated RevokeMessage() to include context.Background() - Updated GetProfilePictureInfo() to include context.Background() - Upgraded whatsmeow and related dependencies - Added support for coder/websocket library migration This update includes improvements to device cache management, better error handling, and enhanced connection stability.
Changes: - Use golang:1.24-alpine base image (required by updated whatsmeow) - Remove -mod vendor flag to download fresh dependencies - Remove 'go' package installation (included in golang image) This fixes build errors caused by vendored dependencies being out of sync with the updated go.mod after whatsmeow upgrade.
This Dockerfile demonstrates how to build matterbridge by cloning directly from the GitHub branch, useful for CI/CD or remote builds.
Add -mod=mod flag to go build command in both Dockerfiles to explicitly tell Go to ignore the vendor directory and download fresh dependencies from go.mod. This resolves the "inconsistent vendoring" error that occurs because the cloned repository includes an outdated vendor directory that doesn't match the updated go.mod dependencies. Changes: - Dockerfile_whatsappmulti: Added -mod=mod flag - Dockerfile.updated: Added -mod=mod flag
Updated whatsmeow from ad7a618ba42f to 720bd0b4a715 to include: - Proto update to v1029399661 (AI features, model metadata) - History sync receipts fix - Pre-key upload optimization (812 prekeys) - Connection event handler improvements - Client payload default updates - Initial history bootstrap inline payload support No code changes required - all updates are backward compatible with existing matterbridge functionality. Commits included: - 720bd0b proto: update to v1029399661 - 6cfa7f7 message: add support for initialHistBootstrapInlinePayload - a8a4c7e connectionevents: add stub handler for dirty event - ac4867a store/clientpayload: update default values - a2f58c9 message: fix history sync receipts - 1e8afd5 prekeys: upload 812 prekeys in initial bundle
…dates-011CUrxG4Yn1RABuSVSa1E1g Claude/integrate whatsmeow updates 011 c urx g4 yn1 ra bu sv sa1 e1g
Whatsmeow only update
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.
This PR adds support for private (1-to-1) chats in the WhatsApp multi-device bridge. Previously, the bridge only supported group chats, but this enhancement allows users to bridge private messages with other platforms.
Changes
Added validation for private chat JIDs (ending with @s.whatsapp.net) in the JoinChannel function
Added a new helper function isPrivateJid() to identify private chat JIDs
Implemented appropriate validation and logging for private chats
Usage
To use this feature, configure a gateway with a private chat JID as the channel:
The JID format is the WhatsApp phone number followed by @s.whatsapp.net.
Testing
The changes have been tested in an actively used system with multiple group and private chats and both function correctly.
Notes
If the contact isn't in the user's contacts list, a warning is logged but the bridge will still attempt to connect
All message types (text, media, etc.) work with private chats without additional changes since the underlying protocol handles them similarly to group messages