Skip to content

feat(matrix): support encrypted messages with E2EE#1841

Merged
yinwm merged 3 commits intosipeed:mainfrom
RussellLuo:matrix-e2ee
Mar 24, 2026
Merged

feat(matrix): support encrypted messages with E2EE#1841
yinwm merged 3 commits intosipeed:mainfrom
RussellLuo:matrix-e2ee

Conversation

@RussellLuo
Copy link
Contributor

@RussellLuo RussellLuo commented Mar 20, 2026

📝 Description

  • Add crypto_database_path and crypto_passphrase configuration
  • Integrate cryptohelper for decrypting m.room.encrypted events
  • Handle both plaintext and encrypted messages in handleMessageEvent
  • Enable goolm build tag for libsignal crypto support

🗣️ Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 📖 Documentation update

🤖 AI Code Generation

  • 👨‍💻 Mostly Human-written (Human lead, AI assisted or none)

🔗 Related Issue

Fixes #1840.

📚 Technical Context (Skip for Docs)

See here for the example of implementing E2EE using maunium.net/go/mautrix.

🧪 Test Environment

  • Hardware:
  • OS:
  • Model/Provider:
  • Channels:

📸 Evidence (Optional)

image

☑️ Checklist

  • My code/docs follow the style of this project.
  • I have performed a self-review of my own changes.
  • I have updated the documentation accordingly.

@CLAassistant
Copy link

CLAassistant commented Mar 20, 2026

CLA assistant check
All committers have signed the CLA.

- Add `crypto_database_path` and `crypto_passphrase` configuration
- Integrate cryptohelper for decrypting `m.room.encrypted` events
- Handle both plaintext and encrypted messages in `handleMessageEvent`
- Enable `goolm` build tag for libsignal crypto support

Fixes sipeed#1840.
Copy link
Collaborator

@yinwm yinwm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. E2EE support is well-implemented with proper error handling and backward compatibility. No critical issues found.

@yinwm yinwm merged commit 9381da2 into sipeed:main Mar 24, 2026
4 checks passed
@RussellLuo RussellLuo deleted the matrix-e2ee branch March 24, 2026 15:33
@RussellLuo
Copy link
Contributor Author

@yinwm Thanks. make build-all started failing (this job), so I opened a follow-up PR to fix it. The platform-specific details we found later are in the MR: #1975.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file domain: channel domain: config go Pull requests that update go code type: enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Support for encrypted messages in Matrix channel

3 participants