Commit Graph

3775 Commits

Author SHA1 Message Date
Krille-chan 6117e1cba8
Merge pull request #1936 from famedly/krille/make-clear-that-upload-content-does-not-e2ee
chore: Make more clear that Client.uploadContent() does not end to end encrypt the file
2024-10-08 14:59:22 +02:00
Krille cdf6814f0a
chore: Make more clear that Client.uploadContent() does not end to end encrypt the file 2024-10-08 14:56:53 +02:00
Krille-chan 2527ea57ee
Merge pull request #1934 from famedly/nico/speedup-tests
Speedup tests
2024-10-08 14:56:12 +02:00
Nicolas Werner a6e8e40c99
chore: Switch to cheaper github runner
Might also fix our weird test hangs
2024-10-08 14:41:36 +02:00
Nicolas Werner e32a6ac037
chore: bump dart version to fix tests not exiting sometimes 2024-10-07 21:56:49 +02:00
Nicolas Werner ec36d9c8fe
fix: Race conditions in tests now that they are running faster 2024-10-07 21:37:42 +02:00
Nicolas Werner 6a28ab05d0
fix: Deduplicate key OTK uploads
We do the key upload asynchronously without awaiting it. This means we
may do multiple syncs before the key upload finishes. So we may generate
more keys than we should.

To fix that prevent multiple key uploads from running at once. This may
lead to outdated key uploads in some cases if we miss an OTK being used
in sync. However, the next sync will still tell us about that so in the
worst case this might delay key uploads by 30s (with the default sync
timeout), which for normal usage should be completely acceptable.
2024-10-07 20:55:14 +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
td 2085964a68
Merge pull request #1932 from famedly/krille/call-event-unexpected-sender-debug-log
chore: Lower loglevel for call event with unexpected sender
2024-10-07 12:24:00 +02:00
Krille b913b40fd8
chore: Lower loglevel for call event with unexpected sender 2024-10-07 10:31:29 +02:00
td 71180deec7
Merge pull request #1919 from famedly/release/v0.33.0
chore: release v0.33.0
2024-09-19 15:33:57 +02:00
td d80357e4c0
chore: release v0.33.0 2024-09-19 15:03:03 +02:00
td c84172df80
Merge pull request #1914 from famedly/td/v1.11support
feat: BREAKING CHANGE v1.11 support
2024-09-19 14:25:02 +02:00
td 140db616d9
feat: BREAKING CHANGE v1.11 matrix-spec endpoints 2024-09-19 14:16:49 +02:00
Nicolas Werner ca41a963e3
Merge pull request #1918 from famedly/nico/fix-archive-rooms-becoming-joined
fix archive rooms becoming joined
2024-09-18 11:28:43 +02:00
Nicolas Werner 15dce00c0f
fix: don't convert archived rooms to joined rooms by accident
When decrypting the last event for archived rooms when a room key is
received, we used to send a synthetic SyncUpdate. This however put the
archived room into the join section, which converted the room to a
joined room. We need to respect what section the room was in when
sending synthetic SyncUpdates.

fixes https://github.com/famedly/matrix-dart-sdk/issues/1916
2024-09-18 11:11:35 +02:00
Nicolas Werner fec258ef12
fix: wait for pending transactions before db close
This was triggered by some archive decryption test I was writing and
possibly also is triggered in production a few times. Waiting for
running transactions to complete before closing sounds sensible.
2024-09-18 10:43:03 +02:00
Nicolas Werner 12f45e7687
Merge pull request #1917 from famedly/nico/fix-archive-load
fix: also lazy load members for archive
2024-09-17 12:55:20 +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 804832e951
Merge pull request #1911 from famedly/release/v0.32.4
chore: release v0.32.4
2024-08-28 18:13:45 +02:00
td cd89982ab6
chore: release v0.32.4 2024-08-28 17:33:21 +02:00
td 9b8fa95a52
Merge pull request #1910 from famedly/td/wellKnownBreakFix
fix: actually make sure clientBox has a account
2024-08-28 17:07:09 +02:00
td 65c0f8119c
fix: actually make sure clientBox has a account 2024-08-28 17:00:14 +02:00
td 4a8f628706
Merge pull request #1909 from famedly/release/v0.32.3
chore: release v0.32.3
2024-08-27 10:25:03 +02:00
td 7a1d82da1d
chore: release v0.32.3 2024-08-27 10:16:44 +02:00
td a01880a527
Merge pull request #1908 from famedly/td/ignoreStateIfNoJoin
fix: race condition between getState and requestUser updates
2024-08-27 10:11:34 +02:00
td 4c4a062a27
fix: race condition between getState and requestUser updates 2024-08-27 10:04:56 +02:00
td 8f350760c4
Merge pull request #1907 from famedly/td/dedeupVersionCalls
fix: dedup /versions calls
2024-08-23 16:40:27 +02:00
td d9681d552e
fix: dedup /versions calls 2024-08-23 16:30:56 +02:00
Nicolas Werner 5f85acb7f0
Merge pull request #1875 from TheOneWithTheBraid/braid/well-known-cache
feat: cache .well-known data
2024-08-23 10:09:09 +02:00
The one with the braid 6e48c308ad
feat: cache .well-known data
- BREAKING: create `DatabaseApi.storeWellKnown` method
- BREAKING: create `DatabaseApi.getWellKnown` method
- add new getter `Client.wellKnown` containing cached `DiscoveryInformation`
- override `Client.homeserver` to invalidate `Client.wellKnown` in case the domain changed
- override `Client.getWellknown` to cache the resolved `DiscoveryInformation`
- add tests for well-known cache

Fixes: #1865

Signed-off-by: The one with the braid <info@braid.business>
2024-08-23 10:01:34 +02:00
Krille-chan 11b8160f21
Merge pull request #1906 from famedly/release/v0.32.2
build: Release 0.32.2
2024-08-21 15:47:49 +02:00
Krille 625d38b533
build: Release 0.32.2 2024-08-21 15:32:38 +02:00
Krille-chan 4e0f05702a
Merge pull request #1905 from famedly/krille/use-auth-media-if-unstable-features
refactor: Also use authenticated media if unstable features claim support
2024-08-21 15:13:24 +02:00
Krille 2dce08bab1
refactor: Also use authenticated media if unstable features claim support 2024-08-21 15:06:50 +02:00
Nicolas Werner a979c2e4fb
Merge pull request #1904 from TheOneWithTheBraid/braid/macos-dylib
fix: SQLCipher dylib location on macOS builds
2024-08-21 13:46:20 +02:00
The one with the braid 23704f68b8
fix: SQLCipher dylib location on macOS builds
Signed-off-by: The one with the braid <info@braid.business>
2024-08-21 10:29:14 +02:00
td 99564df087
Merge pull request #1902 from famedly/release/v0.32.1
chore: release v0.32.1
2024-08-16 17:39:07 +05:30
td bb1c8db942
chore: release v0.32.1 2024-08-16 15:19:02 +05:30
td 6bf03a8431
Merge pull request #1901 from famedly/td/authMedia
feat: support for authenticated media
2024-08-16 14:42:22 +05:30
td f79096dfbb
feat: support for authenticated media 2024-08-16 14:35:50 +05:30
td 987dd750b3
Merge pull request #1900 from famedly/release/v0.31.1
build: Release v0.31.1
2024-08-09 14:58:28 +05:30
Krille df5cd7cd75
build: Release v0.32.0 2024-08-09 11:20:07 +02:00
Krille-chan c071b8c06e
Merge pull request #1899 from famedly/krille/fix-app-freeze-because-of-loop
fix: App freezes because of recursive loop with getLocalizedDisplayname() call
2024-08-09 10:55:27 +02:00
Krille a0bfd0c73d
fix: App freezes because of recursive loop with getLocalizedDisplayname() call 2024-08-09 10:17:23 +02:00
Nicolas Werner 820a0c53dd
Merge pull request #1896 from famedly/nico/fix-leave-invite-chain
fix: leave->invite in the same sync would hide the invite
2024-07-31 21:03:23 +02:00
Nicolas Werner de5f454218
fix: don't restart github action service after apt install
By default apt-get seems to restart services now, but that restarts the
github actions runner and cancels our job... Add the github actions
service to the exluded services.

See also https://discourse.ubuntu.com/t/needrestart-changes-in-ubuntu-24-04-service-restarts/44671
2024-07-31 20:31:28 +02:00
Nicolas Werner 3d92428b7e
fix: leave->invite in the same sync would hide the invite
Synapse includes the room in both sections if you have both an
invite->leave and a leave->invite transition in one sync response.
Transitions in the other order are only included once (in the leave
section) it seems, so this should work correctly in all cases.

Fixes https://github.com/famedly/product-management/issues/2283
2024-07-31 19:25:58 +02:00
Krille-chan 6dbc11180c
Merge pull request #1895 from famedly/krille/call-logout-on-soft-logout-cancel
fix: Call logout on soft logout fail
2024-07-31 14:06:24 +02:00