Go to file
Christian Kußowski ba38b1f97f
refactor: Do not store room update for leave rooms not cached anyway
This adds a check before the storeRoomUpdate() call
if the room is actually known. This has the effect
that the call of forgetRoom() is skipped.

The reason for this is an edge case in the database
implementation when calling getAllKeys(). This
somehow can corrupt the keys-cache and lead to
some problems. I wasn't able to fix this problem
yet so this refactoring is more a good-enough
workaround for now to not trigger it on an
initial sync. I plan to fix it with a different
approach which completely removes the keys-cache
in the future.

However this change leads to some problems in the
tests as they already rely on this edge case.
2025-06-02 10:08:19 +02:00
.github feat: endpoints for spec v1.14 (BREAKING CHANGE) 2025-03-27 22:50:35 +01:00
.gitlab chore: change codeowners 2022-10-19 10:16:49 +00:00
doc refactor: (BREAKING) Make database required 2025-05-16 08:28:08 +02:00
example refactor: (BREAKING) Make database required 2025-05-16 08:28:08 +02:00
lib refactor: Do not store room update for leave rooms not cached anyway 2025-06-02 10:08:19 +02:00
scripts chore: Dispose all clients in test 2024-12-18 11:15:39 +01:00
test refactor: Do not store room update for leave rooms not cached anyway 2025-06-02 10:08:19 +02:00
test_driver refactor: (BREAKING) Make database required 2025-05-16 08:28:08 +02:00
web_test refactor: (BREAKING) Make database required 2025-05-16 08:28:08 +02:00
.codecov.yaml feat: upload code coverage to codecov 2025-03-11 14:14:04 +01:00
.gitignore chore: use proper matchers in integration tests 2022-12-14 14:45:58 +01:00
.gitlab-ci.yml feat: Implement new Matrix Dart SDK Database 2023-12-06 12:11:47 +01:00
.metadata Initial commit 2019-06-09 12:16:48 +02:00
CHANGELOG.md build: Changelog for 0.40.0 2025-05-09 12:38:38 +02:00
CONTRIBUTING.md docs: Clean up repository docs 2021-05-18 11:41:53 +00:00
LICENSE Update LICENSE 2019-06-09 11:36:59 +00:00
README.md chore: add info about tests to readme 2024-07-31 14:13:30 +05:30
analysis_options.yaml chore: add require trailing comma lint 2024-11-07 16:13:37 +01:00
dart_test.yaml feat: lcov and tag olm tests 2024-04-23 15:21:46 +05:30
pubspec.yaml build: Changelog for 0.40.0 2025-05-09 12:38:38 +02:00

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:

API documentation

Tests

thread_count=$(getconf _NPROCESSORS_ONLN) // or your favourite number :3
dart test --concurrency=$thread_count test
  • Adding the -x olm flag will skip tests which require olm
  • Using -t olm will 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)