The direct chat account data content is a map from matrixId to roomId(s). If we want to find the roomId for a given userId, then this is not a problem. But the other way around, if we want to check if a given roomId is a direct chat or not, needs to process all entries which can be hundreds. Doing this very often in an app costs a lot of performance. This adds a simple cache in the room object and validates the cache every time to make this more efficient. |
||
|---|---|---|
| .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: