A demonstration app for bridging WhatsApp to Matrix in a DMA-compliant way
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2023-02-26 15:55:14 -07:00
.idea Try to get web4j library working; fail; drop whatsmeow in the mix 2023-02-16 16:39:40 -07:00
app Update whatsmeow 2023-02-26 15:55:14 -07:00
gradle/wrapper Initial app structure & broken dependencies 2023-02-14 14:01:28 -07:00
.gitignore QR code scanning 2023-02-17 14:49:56 -07:00
build.gradle Commit efforts to get the library to work 2023-02-14 16:02:16 -07:00
gradle.properties Initial app structure & broken dependencies 2023-02-14 14:01:28 -07:00
gradlew Initial app structure & broken dependencies 2023-02-14 14:01:28 -07:00
gradlew.bat Initial app structure & broken dependencies 2023-02-14 14:01:28 -07:00
README.md Reference whatsmeow 2023-02-17 20:42:22 -07:00
settings.gradle Commit efforts to get the library to work 2023-02-14 16:02:16 -07:00

DMA Demo: WhatsApp to Matrix

A demonstration on how to bridge WhatsApp to Matrix in a DMA-compliant way.

🚨 Not intended for practical usage!

This project is a demo and makes a lot of assumptions about how it's running. With some effort, this could be made into a real, production-ready, app, however in its current state it is fully intended to only show what is possible with the APIs available.

This app uses fragile APIs provided by WhatsApp in order to operate, and the setup experience is subpar. There is no current way around this, but the DMA should make this easier.

Do not use accounts you care about. The app assumes it has full control over both the WhatsApp and Matrix accounts - it will make an utter mess of everything if you use accounts you intend to use outside of a demo environment.

The code is bad, sorry. This almost certainly is not how you should write an Android app, nor is it really a reference for how to structure a project. In future this might be improved, but for now it's awful (sorry).

To reiterate: THIS IS A DEMO. Even the user IDs the app uses are hardcoded.

Known bugs

  • Performance is awful (there's no real caching anywhere)

Deferred features

These features are not likely to be added to this demo application:

  • Images, threads, reactions, real DMs, etc all should be bridged
  • Bridge DMs as DMs rather than as group chats
  • Bridging new DMs and group chats after the initial sync from WhatsApp

Building / Installing

Run Android Studio.

Support

This is a demo. There is no support.

Contributing

Please do! If you're able to fix a bug from above, submit a PR.

Features are less likely to be accepted/looked at, but bug fixes are very much appreciated.

Note that the whatsmeow library is created from a fork: https://github.com/turt2live/whatsmeow