Michael Telatynski
88ba4fad71
Skip processing thread roots and fetching threads list when support is disabled ( #3642 )
...
* Skip processing thread roots and fetching threads list when support is disabled
* Enable threads support in tests
2023-07-31 18:16:42 +00:00
Michael Telatynski
21b3471453
Bump pagination limit to account for threaded events ( #3638 )
2023-07-31 16:59:55 +00:00
Florian Duros
0ada9803ab
ElementR: Add CryptoApi.findVerificationRequestDMInProgress ( #3601 )
...
* Add `CryptoApi.findVerificationRequestDMInProgress`
* Fix linting and missing parameters
* Move `ROOM_ID` into `test-data`
* Remove verification request from `EventDecryptor` pending list
* Fix duplicate timeline event processing
* Add extra documentation
* Try to fix sonar error
* Use `roomId`
* Fix typo
* Review changes
* Review changes
* Fix `initRustCrypto` jsdoc
* Listen to `ClientEvent.Event` instead of `RoomEvent.Timeline`
* Fix missing room id in `generate-test-data.py`
* Review changes
* Review changes
* Handle encrypted event
* Fix linting
* Comments and run timers
* Ignore 404
* Fix test
2023-07-31 15:00:15 +00:00
Michael Telatynski
1744f0e97b
Revert "Ensure we don't overinflate the total notification count ( #3634 )" ( #3639 )
2023-07-31 11:57:11 +01:00
Michael Telatynski
fd0c4a7f56
Ensure we don't overinflate the total notification count ( #3634 )
...
* Ensure we don't overinflate the total notification count
By correctly comparing push rules before & after decryption
* DRY the code
* Testsssss
* Update tests
2023-07-28 15:05:11 +00:00
Michael Telatynski
615f7f9e72
Export more into the public interface ( #3614 )
2023-07-28 11:54:17 +00:00
renovate[bot]
77259e81c9
Update all non-major dependencies ( #3630 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-28 10:55:22 +00:00
Richard van der Hoff
2193cd9d1c
Implement CryptoApi.isKeyBackupTrusted ( #3632 )
...
* Implement `CryptoApi.isKeyBackupTrusted`
Fixes https://github.com/vector-im/crypto-internal/issues/110
* Bump matrix-sdk-crypto-wasm to v1.2.0
* Back out some changes
These are unneeded, and break backwards compat
2023-07-28 09:54:55 +00:00
Valere
6d28154dcd
Add CryptoApi.getActiveSessionBackupVersion() ( #3555 )
...
* stub backupmanager
* Implement `CryptoApi.getActiveSessionBackupVersion`
* Revert unnecessary change
we can do this later, once we have better test coverage
* more test coverage
---------
Co-authored-by: Richard van der Hoff <richard@matrix.org >
2023-07-28 08:04:20 +00:00
Richard van der Hoff
83d447adfe
Clean up megolm-backup integ test ( #3631 )
...
* Add `CryptoApi.setDeviceVerified`
I need a way to mark devices as trusted for the backup tests.
* More tests
* Simplify E2EKeyResponder.addDeviceKeys
The user and device IDs are in the test data, so no need to pass them in
* Clean up key backup integration test
Make it use the CryptoApi rather than legacy `MatrixClient.crypto`, and use a
pre-signed backup instead of requiring a "blindlySignAnything" method.
* run megolm-backup tests on both crypto stacks
* avoid internal backupManager
2023-07-27 15:23:02 +00:00
Richard van der Hoff
73c9f4e322
Add CryptoApi.setDeviceVerified ( #3624 )
...
I need a way to mark devices as trusted for the backup tests.
2023-07-27 13:16:10 +01:00
renovate[bot]
e6fa4cdb3c
Lock file maintenance ( #3629 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-27 09:45:53 +00:00
Michael Telatynski
a04653a72c
Upgrade matrix-widget-api ( #3621 )
...
* Fix threads ending up with chunks of their timelines missing
* delint
* Upgrade matrix-widget-api
2023-07-27 09:21:14 +00:00
renovate[bot]
5f9341f39c
Update dependency eslint-plugin-unicorn to v48 ( #3628 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-27 08:37:46 +00:00
renovate[bot]
906946c419
Update all non-major dependencies ( #3626 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-27 08:37:23 +00:00
renovate[bot]
4397b9d640
Update dependency @types/node to v18.17.0 ( #3627 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-27 08:37:02 +00:00
Florian Duros
84444ec11e
ElementR: Add CryptoApi.getCrossSigningKeyId ( #3619 )
...
* Add `CryptoApi.getCrossSigningKeyId`
* Rename `CrossSigningPubKey` to `CrossSigningKeyInfo`
* Remove old eslint disable
* Review changes
* Review changes
2023-07-26 16:09:49 +00:00
Richard van der Hoff
0e95df5dba
Element-R: implement {get,store}SessionBackupPrivateKey ( #3622 )
2023-07-26 12:00:43 +01:00
Valere
29b815b678
Replace deprecated TestClient with fetchMock ( #3550 )
...
* replace deprecated TestClient with fetchMock
* add stop() api to BackupManager for clean shutdown
* fix merge
* code review cleaning
* lint
* Address review comments
* Remove unused `TestClient.expectKeyBackupQuery`
* clean up imports
---------
Co-authored-by: Richard van der Hoff <richard@matrix.org >
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com >
2023-07-25 20:42:41 +00:00
Richard van der Hoff
0cf056958b
Fix broken unit tests for FetchHttpApi.getUrl ( #3620 )
...
These tests have broken on Node.js 18.17.0.
This is due to Node.js adopting an updated version of the URL parser, in which
the internal `Symbol(query)` property is populated lazily.
We shouldn't be relying on the internal state of the URL object anyway. Let's
just compare the stringified copy.
2023-07-25 19:48:15 +00:00
Florian Duros
79d4113a6b
ElementR: Stub CheckOwnCrossSigningTrust, import cross signing keys and verify local device in bootstrapCrossSigning ( #3608 )
2023-07-25 18:03:43 +01:00
Michael Telatynski
8a80886358
Fix threads ending up with chunks of their timelines missing ( #3618 )
...
* Fix threads ending up with chunks of their timelines missing
* delint
2023-07-25 15:28:52 +00:00
Michael Telatynski
de7959de6c
Ensure we do not clobber a newer RR with an older unthreaded one ( #3617 )
...
* Ensure we do not clobber a newer RR with an older unthreaded one
or vice versa
* Fix test
2023-07-24 16:35:56 +00:00
Michael Telatynski
533c21a515
Fix registration check your emails stage regression ( #3616 )
...
* Fix registration check your emails stage regression
* Simplify diff
* Add test
2023-07-24 14:08:17 +00:00
Michael Telatynski
6b018b6927
Fix how Room::eventShouldLiveIn handles replies to unknown parents ( #3615 )
...
* Add warning
* Fix how Room::eventShouldLiveIn handles replies to unknown parents
2023-07-24 07:37:28 +00:00
Michael Telatynski
38c3abb364
Update downstream-artifacts.yml ( #3613 )
2023-07-20 21:43:49 +00:00
Michael Telatynski
a47f319665
Only send threaded read receipts if threads support is enabled ( #3612 )
...
* Only send threaded read receipts if threads support is enabled
* Tests
2023-07-20 15:44:52 +00:00
Florian Duros
ecef9fd755
Fix CryptoApi#getVerificationRequestsToDeviceInProgress ( #3611 )
2023-07-20 09:46:55 +00:00
Richard van der Hoff
7dffd8ffd3
Make sure to drop references to user device lists ( #3610 )
...
Empirically, this seems to fix some problems with leaking references to
IndexedDB.
2023-07-20 08:47:30 +00:00
Michael Telatynski
66492e7ba8
Fix edge cases around non-thread relations to thread roots and read receipts ( #3607 )
...
* Ensure non-thread relations to a thread root are actually in both timelines
* Make thread in sendReceipt & sendReadReceipt explicit rather than guessing it
* Apply suggestions from code review
* Fix Room::eventShouldLiveIn to better match Synapse to diverging ideas of notifications
* Update read receipt sending behaviour to align with Synapse
* Fix tests
* Fix thread rel type
2023-07-19 11:21:50 +00:00
Michael Telatynski
43b2404865
Specify /preview_url requests as low priority ( #3609 )
...
* Specify /preview_url requests as low priority
* Update src/@types/global.d.ts
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com >
* Simplify interface
---------
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com >
2023-07-19 09:29:41 +00:00
Michael Telatynski
fed9910fa1
Remove unused better-docs & docdash ( #3605 )
2023-07-19 07:44:11 +00:00
RiotRobot
f77662406c
Resetting package fields for development
2023-07-18 12:53:43 +01:00
RiotRobot
8cc0cf1a70
Merge branch 'master' into develop
2023-07-18 12:53:38 +01:00
RiotRobot
dfa2429094
v27.0.0
v27.0.0
2023-07-18 12:52:00 +01:00
RiotRobot
3e2460707c
Prepare changelog for v27.0.0
2023-07-18 12:51:57 +01:00
Michael Telatynski
706c084fa7
Add tests for room-hierarchy ( #3606 )
...
* Add tests for room-hierarchy
* overwriteroutes
2023-07-18 10:37:17 +00:00
renovate[bot]
eb7faa6c07
Lock file maintenance ( #3604 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-17 17:59:37 +00:00
RiotRobot
d45a0b894a
v27.0.0-rc.2
v27.0.0-rc.2
2023-07-14 16:10:12 +01:00
RiotRobot
102739e0fb
Prepare changelog for v27.0.0-rc.2
2023-07-14 16:10:09 +01:00
Andy Balaam
0d7e4a0fa5
Merge pull request #3603 from matrix-org/backport-3600-to-staging
...
[Backport staging] Fix read receipt sending behaviour around thread roots
2023-07-14 16:03:41 +01:00
Michael Telatynski
d4628e78d4
Fix read receipt sending behaviour around thread roots ( #3600 )
...
* Fix read receipt sending behaviour around thread roots
* Update src/client.ts
Co-authored-by: Eric Eastwood <erice@element.io >
---------
Co-authored-by: Eric Eastwood <erice@element.io >
(cherry picked from commit b05f933d83 )
2023-07-14 15:01:58 +00:00
Richard van der Hoff
0b193f4665
matrix-sdk-crypto-js -> matrix-sdk-crypto-wasm ( #3602 )
...
We've renamed matrix-sdk-crypto-js and released a v1.0.
2023-07-13 17:11:57 +00:00
Eric Eastwood
8ef2e848b9
Log query parameters on HTTP requests ( #3591 )
...
* Log query parameters on HTTP requests
Follow-up to https://github.com/matrix-org/matrix-js-sdk/pull/3485
* Only stringify once
See https://github.com/matrix-org/matrix-js-sdk/pull/3591#discussion_r1261300323
2023-07-13 13:07:01 +00:00
Richard van der Hoff
d92936fba5
Element-R: support for displaying QR codes during verification ( #3588 )
...
* Support for showing QR codes
* Emit `VerificationRequestEvent.Change` events when the verifier changes
* Minor integ test tweaks
* Handle transitions from QR code display to SAS
* Fix naming
* Add a test for `ShowQrCodeCallbacks.cancel`
2023-07-13 11:11:13 +00:00
Michael Telatynski
f005984df3
Export typed event emitter key types ( #3597 )
...
* Export typed event emitter key types
* Update src/matrix.ts
2023-07-13 11:10:24 +00:00
Richard van der Hoff
13fec49e74
Element-R: ensure that userHasCrossSigningKeys uses up-to-date data ( #3599 )
...
* Element-R: ensure that `userHasCrossSigningKeys` uses up-to-date data
* Bump matrix-sdk-crypto-js
2023-07-13 10:46:56 +00:00
renovate[bot]
008294cfc6
Update babel monorepo to v7.22.9 ( #3434 )
...
* Update babel monorepo to v7.22.9
* Make babel happier
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com >
2023-07-13 09:41:03 +00:00
Michael Telatynski
b05f933d83
Fix read receipt sending behaviour around thread roots ( #3600 )
...
* Fix read receipt sending behaviour around thread roots
* Update src/client.ts
Co-authored-by: Eric Eastwood <erice@element.io >
---------
Co-authored-by: Eric Eastwood <erice@element.io >
2023-07-13 08:25:23 +00:00
Michael Telatynski
b186d79dde
Fix jest/valid-expects lints ( #3586 )
2023-07-12 17:11:52 +00:00