matrix-dart-sdk/lib
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
..
encryption refactor: (BREAKING) Make database required 2025-05-16 08:28:08 +02:00
matrix_api_lite feat: endpoints for spec v1.14 (BREAKING CHANGE) 2025-03-27 22:50:35 +01:00
msc_extensions refactor: (BREAKING) Make database required 2025-05-16 08:28:08 +02:00
src refactor: Do not store room update for leave rooms not cached anyway 2025-06-02 10:08:19 +02:00
encryption.dart chore: Upgrade dependencies 2024-10-21 13:04:47 +02:00
fake_matrix_api.dart refactor: Do not store room update for leave rooms not cached anyway 2025-06-02 10:08:19 +02:00
matrix.dart refactor: (BREAKING) Remove hive database and hive dependencies 2025-05-08 14:29:52 +02:00
matrix_api_lite.dart refactor: Remove BasicRoomEvent type 2025-01-09 11:05:01 +01:00