Commit Graph

36 Commits

Author SHA1 Message Date
Krille 3f04532ffe
refactor: Remove BasicRoomEvent type
We actually never use the
roomId of this type and the
matrix spec has changed in
a way that the roomId is
never sent there actually. So
it was super easy to just
replace all BasicRoomEvent
with BasicEvent. The roomId
became nullable anyway.
2025-01-09 11:05:01 +01:00
Krille f46e76295c
fix: BREAKING! Cache members for encrypted rooms in database
This fixes a huge performance
leak as for every encrypted room
the whole member list is loaded
every time you start the client.
This also changes the default value of `cache` in
this method to if the room is encrypted or not.
For encrypted rooms we always want a complete
member list locally.
2024-11-11 11:58:18 +01:00
Mohammad Reza Moradi 9c32193dff
chore: add require trailing comma lint 2024-11-07 16:13:37 +01:00
Krille 13d756856e
refactor: Migrate to m.marked_unread from Matrix v1.12 2024-10-08 15:03:39 +02:00
Nicolas Werner 583be5ece7
fix: by default don't uplaod new keys in our tests
This reduces CPU load of the uploadKeys callback by a lot, since we
don't upload new keys on every empty sync in the tests.
2024-10-07 20:38:08 +02:00
Nicolas Werner b74dbdea4a
fix: Don't wait for 5 milliseconds on every sync in our tests
This was added in 77be6102f6 without much
documentation. I am pretty sure the intent was never to slow down every
test by 5 seconds, so let's get rid of it and do more careful delays
where it is useful (like specific sync requests for example).

Makes the tests run 5 times faster (the whole suite!) on my device.
2024-10-07 20:38:08 +02:00
Nicolas Werner b839273ce0
fix: also lazy load members for archive
This should speed up loading the archived rooms. One of the reasons it
was so slow, is because we were loading all room members!

Additionally this may work around a bug in Synapse, where rooms stuck in
their partial state may block sync indefinitely.

Relates to https://github.com/famedly/product-management/issues/2250
2024-09-16 16:36:25 +02:00
td 65c0f8119c
fix: actually make sure clientBox has a account 2024-08-28 17:00:14 +02:00
td d9681d552e
fix: dedup /versions calls 2024-08-23 16:30:56 +02:00
td f79096dfbb
feat: support for authenticated media 2024-08-16 14:35:50 +05:30
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
td a2e8830df0
chore: expose fake matrix api 2024-04-30 17:42:36 +05:30
td 281510b950
feat: lcov and tag olm tests 2024-04-23 15:21:46 +05:30
td cd94cf62a8
chore: merge api_lite and dart sdk 2024-03-25 17:22:05 +05:30
Malin Errenst 5d8a82aefa
fix: Fixed fake_matrix_api.dart signedOneTimeKeys upload 2023-06-22 18:05:04 +02:00
Krille e81898ef7f
refactor: Get rid of dynamic lists 2023-06-13 07:59:20 +02:00
Malin Errenst 06d587e64f
refactor: Changed Map<String, dynamic> to Map<String, Object?>
- contains breaking changes because some type casts will be needed in
  Matrix SDK
2023-06-09 15:04:28 +02:00
Nicolas Werner 53fbe4f7ef
chore: sort imports 2023-05-08 14:49:34 +02:00
Nicolas Werner a525bb120a chore: strict casts 2022-08-20 17:26:16 +02:00
Nicolas Werner 6a225e3b8c chore: strict raw types 2022-08-20 11:56:34 +02:00
Nicolas Werner 5bd934895d chore: strict inference 2022-08-20 11:53:14 +02:00
Nicolas Werner 7471743be3 chore: disable dynamic calls 2022-08-20 11:28:43 +02:00
Nicolas Werner ff66e1c208 chore: upgrade from pedantic to lints 2022-08-19 12:11:42 +02:00
Nicolas Werner 24a3369520 tests: Add basic test for space hierarchy api 2022-06-08 15:55:18 +00:00
Krille Fear fc4f004312 fix: Add missing versions to fake matrix api
This makes it easier to
use the FakeMatrixApi in
other packages for unit
tests.
2022-06-03 11:05:30 +00:00
Nicolas Werner d6bb91f7e1 chore: Update to matrix v1.2 2022-05-06 15:14:12 +00:00
Lukas Lihotzki cb71ca9b26 chore: generate more operations from OpenAPI 2021-08-20 16:17:37 +02:00
Marcus Hoffmann 92a2bd9d7e null safety test fixes 2021-07-01 17:36:21 +02:00
Marcus Hoffmann 1a51f813a7 null safety cleanup 2021-07-01 16:59:54 +02:00
Lukas Lihotzki d9c1fdb78a refactor: migrate to null safety 2021-07-01 15:11:39 +02:00
Lukas Lihotzki e3a1b6aa77 refactor: mostly use dart_openapi_codegen 2021-06-25 12:40:03 +02:00
Christian Pauly 88d0eae2b7 fix: Request aliases 2021-05-01 09:00:31 +02:00
Christian Pauly 2b04551838 fix: well-known in fake_matrix_api 2021-01-20 14:07:40 +01:00
Christian Pauly 8f1d35e0bc docs: Update license to MIT 2021-01-08 13:14:03 +01:00
Christian Pauly ede938c105 docs: Update license header 2021-01-04 10:18:41 +01:00
Christian Pauly 6b283d5c50 fix: Current version 2020-12-31 10:44:58 +01:00