matrix-dart-sdk/test
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: Do not store room update for leave rooms not cached anyway 2025-06-02 10:08:19 +02:00
matrix_api chore: add require trailing comma lint 2024-11-07 16:13:37 +01:00
msc_extensions refactor: (BREAKING) Make database required 2025-05-16 08:28:08 +02:00
box_test.dart fix: also delete db on logout 2024-07-26 22:19:02 +05:30
calls_test.dart fix: handling of existing calls in `onCallInvite` 2025-04-23 22:10:03 +05:30
canonical_json_test.dart chore: add require trailing comma lint 2024-11-07 16:13:37 +01:00
client_test.dart refactor: Do not store room update for leave rooms not cached anyway 2025-06-02 10:08:19 +02:00
commands_test.dart feat: BREAKING improve command_extension 2025-02-04 16:19:57 +05:30
database_api_test.dart refactor: (BREAKING) Make database required 2025-05-16 08:28:08 +02:00
device_keys_list_test.dart feat: ensure direct chats have only 2 members before sending verification requests 2025-03-21 15:54:18 +05:30
event_test.dart refactor: (BREAKING) Make database required 2025-05-16 08:28:08 +02:00
event_timeout_test.dart fix: incorrect Event status update in constructor 2025-05-08 19:18:17 +05:30
fake_client.dart refactor: (BREAKING) Make database required 2025-05-16 08:28:08 +02:00
fake_database.dart refactor: (BREAKING) Make database required 2025-05-16 08:28:08 +02:00
html_to_text_test.dart refactor: Use import sorter and ci templates 2022-07-21 15:44:04 +02:00
image_pack_test.dart chore: add require trailing comma lint 2024-11-07 16:13:37 +01:00
markdown_test.dart feat: Switch to github flavor markdown to render checkboxes 2025-05-10 15:45:31 +02:00
matrix_database_test.dart refactor: (BREAKING) Make database required 2025-05-16 08:28:08 +02:00
matrix_exception_test.dart chore: add require trailing comma lint 2024-11-07 16:13:37 +01:00
matrix_file_test.dart chore: add require trailing comma lint 2024-11-07 16:13:37 +01:00
matrix_id_string_extension_test.dart refactor: Use import sorter and ci templates 2022-07-21 15:44:04 +02:00
matrix_localizations_test.dart chore: add require trailing comma lint 2024-11-07 16:13:37 +01:00
multilock_test.dart refactor: Use import sorter and ci templates 2022-07-21 15:44:04 +02:00
mxc_uri_extension_test.dart refactor: (BREAKING) Make database required 2025-05-16 08:28:08 +02:00
push_notification.dart chore: add require trailing comma lint 2024-11-07 16:13:37 +01:00
pushevaluator_test.dart feat: support push rule conditions event_property_is & event_property_contains 2024-12-23 15:21:01 +05:30
room_archived_test.dart refactor: (BREAKING) Make database required 2025-05-16 08:28:08 +02:00
room_test.dart refactor: (BREAKING) Make database required 2025-05-16 08:28:08 +02:00
sync_filter_test.dart chore: add require trailing comma lint 2024-11-07 16:13:37 +01:00
timeline_context_test.dart refactor: Use Event instead of EventUpdate for storing in db 2025-01-07 14:56:04 +01:00
timeline_test.dart chore: prev_batch update after a limited timeline follow-up 2025-05-06 16:03:13 +05:30
uia_test.dart refactor: Use import sorter and ci templates 2022-07-21 15:44:04 +02:00
user_test.dart refactor: (BREAKING) Make database required 2025-05-16 08:28:08 +02:00
webrtc_stub.dart fix: make sure to keep track of aggregated events after requesting history or future 2025-04-30 17:43:55 +02:00