matrix-dart-sdk/test/encryption
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
..
bootstrap_test.dart chore: add require trailing comma lint 2024-11-07 16:13:37 +01:00
cross_signing_test.dart chore: add require trailing comma lint 2024-11-07 16:13:37 +01:00
encrypt_decrypt_room_message_test.dart refactor: Remove unnecessary roomId parameter from decryptRoomEvent method 2024-12-17 11:23:58 +01:00
encrypt_decrypt_to_device_test.dart refactor: (BREAKING) Make database required 2025-05-16 08:28:08 +02:00
key_manager_test.dart refactor: Do not store room update for leave rooms not cached anyway 2025-06-02 10:08:19 +02:00
key_request_test.dart chore: add require trailing comma lint 2024-11-07 16:13:37 +01:00
key_verification_test.dart refactor: (BREAKING) Make database required 2025-05-16 08:28:08 +02:00
olm_manager_test.dart refactor: (BREAKING) Make database required 2025-05-16 08:28:08 +02:00
online_key_backup_test.dart refactor: (BREAKING) Make database required 2025-05-16 08:28:08 +02:00
qr_verification_self_test.dart chore: add require trailing comma lint 2024-11-07 16:13:37 +01:00
ssss_test.dart chore: add require trailing comma lint 2024-11-07 16:13:37 +01:00
utils_test.dart chore: add require trailing comma lint 2024-11-07 16:13:37 +01:00