Skip to content
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 double puppeting #4

Merged
merged 15 commits into from
Jul 16, 2024
Merged

Feat double puppeting #4

merged 15 commits into from
Jul 16, 2024

Conversation

dodosan-89
Copy link

@dodosan-89 dodosan-89 commented Jul 11, 2024

This pull request includes significant changes to the mautrix-imessage bridge, focusing on improving the bridge's double puppeting capabilities, updating the Dockerfile, and adding a new configuration file. Double puppeting allows a user's Matrix and iMessage accounts to appear as the same user in a bridged room.

Here are the most important changes:

Double Puppeting Improvements:

  • config/bridge.go: Added DoublePuppetConfig to the BridgeConfig struct to support double puppeting. Also added GetDoublePuppetConfig() method to return the double puppeting configuration. [1] [2]

  • config/config.go: Added CanAutoDoublePuppet() and GetDoublePuppetSecret() methods to the Config struct. These methods check if automatic double puppeting is possible for a given user ID and retrieve the shared secret for double puppeting, respectively.

  • config/upgrade.go: Updated the DoUpgrade() function to handle the migration of the double puppeting shared secret map.

  • custompuppet.go: Removed unnecessary imports related to double puppeting.

Dockerfile Updates:

  • Dockerfile.ci: Commented out the copying and execution of docker-run.sh and example-config.yaml, and added a new entry point and command for mautrix-imessage.

New Configuration File:

  • config.yaml: Added a new configuration file for the mautrix-imessage bridge. This file includes various settings for the bridge, such as homeserver details, application service details, iMessage connection config, bridge config, and logging config.

Minor Changes:

  • build.sh: Added a line to print the exit status of the go build command.

@jantomgid jantomgid force-pushed the feat-double-puppeting branch 4 times, most recently from 09586c7 to 3fd01d4 Compare July 16, 2024 11:23
@jantomgid jantomgid merged commit 22017f9 into master Jul 16, 2024
2 checks passed
@jantomgid jantomgid deleted the feat-double-puppeting branch July 16, 2024 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants