This bug seems to be in the sdk for 5 years already without anyone noticing. The method loadInboundGroupSession seems to return the wrong variable when loading the session from the key. While the outboundgroupsession loading method relies on an inbound group session, it silently marks the outbound group session as invalid on every restart and creates a new one. This means we never reuse megolm sessions after restarting the client. Fixing this will probably reduce the amount of megolm sessions used in a conversation by a lot which could improve the performance and make the key backup more reliable. |
||
|---|---|---|
| .github | ||
| .gitlab | ||
| doc | ||
| example | ||
| lib | ||
| scripts | ||
| test | ||
| test_driver | ||
| web_test | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| .metadata | ||
| CHANGELOG.md | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| README.md | ||
| analysis_options.yaml | ||
| dart_test.yaml | ||
| pubspec.yaml | ||
README.md
Matrix SDK
Matrix (matrix.org) SDK written in dart.
Native libraries
For E2EE, libolm must be provided.
Additionally, OpenSSL (libcrypto) must be provided on native platforms for E2EE.
For flutter apps you can easily import it with the flutter_olm and the flutter_openssl_crypto packages.
flutter pub add matrix
flutter pub add flutter_olm
flutter pub add flutter_openssl_crypto
Get started
See the API documentation for details:
Tests
thread_count=$(getconf _NPROCESSORS_ONLN) // or your favourite number :3
dart test --concurrency=$thread_count test
- Adding the
-x olmflag will skip tests which require olm - Using
-t olmwill run only olm specific tests, but these will probably break as they need prior setup (which is not marked as olm and hence won't be run)