matrix-dart-sdk/test
Nicolas Werner f13d4e1f45
fix: Request user causing state update loops for apps
This completely redoes the requestUser function.

It now doesn't stop requesting a user forever just because of a network
error. But redundant calls are still deduplicated, however their
parameters are taken into account now.

It also now only calls onUpdate and onRoomState when there is actually
new state. This way apps can just listen to updates to rerender instead
of having to implement the deduplication themselves.

It also now doesn't treat member events without membership as "join"
anymore. And lookup errors don't cause an empty user to get inserted
into the room state.

In general this should still request the profile from the server, if the
displayname is unset in a leave event, but it should also allow the app
to actually settle in the tests.
2024-06-14 12:33:25 +02:00
..
encryption chore: expose fake matrix api 2024-04-30 17:42:36 +05:30
matrix_api chore: merge api_lite and dart sdk 2024-03-25 17:22:05 +05:30
msc_extensions chore: expose fake matrix api 2024-04-30 17:42:36 +05:30
box_test.dart ci: Add tests for database on web 2024-05-02 11:18:35 +02:00
calls_test.dart feat: famedly calls 2024-04-23 15:52:35 +05:30
canonical_json_test.dart refactor: Use import sorter and ci templates 2022-07-21 15:44:04 +02:00
client_test.dart fix: dont override passed powerlevels with groupcall powerlevels 2024-06-11 19:00:39 +05:30
commands_test.dart chore: expose fake matrix api 2024-04-30 17:42:36 +05:30
database_api_test.dart fix: state updates being also applied when fetching history 2024-06-10 14:51:37 +02:00
device_keys_list_test.dart chore: expose fake matrix api 2024-04-30 17:42:36 +05:30
event_test.dart refactor: delete not sent events without eventupdate stream workaround 2024-05-08 12:02:55 +02:00
fake_client.dart refactor: Combine sendMessageTimeoutSeconds and sendTimelineEventTimeout 2024-05-20 16:57:55 +02:00
fake_database.dart chore: Upgrade lints to 4.0.0 2024-05-30 16:15:09 +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 fix: Do not set messages as state events anymore 2024-05-22 22:22:56 +05:30
markdown_test.dart fix: Do only convert linebreaks to br tags in p blocks 2023-11-22 11:02:17 +01:00
matrix_database_test.dart feat: Store accesstokenExpiresIn and call softlogout 5 minutes before 2024-02-23 13:06:38 +01:00
matrix_exception_test.dart chore: fix exception test after api_lite update 2022-10-17 12:52:08 +02:00
matrix_file_test.dart feat: lcov and tag olm tests 2024-04-23 15:21:46 +05:30
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 refactor: Use import sorter and ci templates 2022-07-21 15:44:04 +02:00
multilock_test.dart refactor: Use import sorter and ci templates 2022-07-21 15:44:04 +02:00
mxc_uri_extension_test.dart chore: expose fake matrix api 2024-04-30 17:42:36 +05:30
push_notification.dart refactor: Use import sorter and ci templates 2022-07-21 15:44:04 +02:00
pushevaluator_test.dart feat: lcov and tag olm tests 2024-04-23 15:21:46 +05:30
room_archived_test.dart refactor: Combine sendMessageTimeoutSeconds and sendTimelineEventTimeout 2024-05-20 16:57:55 +02:00
room_test.dart fix: Request user causing state update loops for apps 2024-06-14 12:33:25 +02:00
sync_filter_test.dart feat: switch from pedantic to lints 2022-08-15 14:15:51 +00:00
timeline_context_test.dart refactor: Combine sendMessageTimeoutSeconds and sendTimelineEventTimeout 2024-05-20 16:57:55 +02:00
timeline_test.dart refactor: Combine sendMessageTimeoutSeconds and sendTimelineEventTimeout 2024-05-20 16:57:55 +02:00
uia_test.dart refactor: Use import sorter and ci templates 2022-07-21 15:44:04 +02:00
user_test.dart chore: expose fake matrix api 2024-04-30 17:42:36 +05:30
webrtc_stub.dart feat: famedly calls 2024-04-23 15:52:35 +05:30