Michael Telatynski
34c5598a3f
Modernize http-api - move from browser-request to fetch ( #2719 )
2022-10-12 18:59:04 +01:00
David Teller
917e8c01d8
Base support for MSC3847: Ignore invites with policy rooms ( #2626 )
...
* Base support for MSC3847: Ignore invites with policy rooms
Type: enhancement
* Base support for MSC3847: Ignore invites with policy rooms
Type: enhancement
* WIP: Applying feedback
* WIP: Applying feedback
* WIP: CI linter gives me different errors, weird
* WIP: A little more linting
2022-09-06 22:17:42 -06:00
3nprob
e87ce873b0
utils: Fix bug in deepCompare which would incorrectly return objects with disjoint keys as equal ( #2586 )
...
* utils: Fix bug in deepCompare which would incorrectly return objects with disjoint keys as equal
* Fix bugs in sync test
This test wrongly asserted that `initialSyncLimit` would be used to make a filter
It is used only for the initial sync inline filter, and not in POST /filter
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com >
2022-09-01 21:36:24 +00:00
Robin
c629d2f60e
Emit an event when the client receives TURN servers ( #2529 )
...
* Emit an event when the client receives TURN servers
* Add tests
* Fix lints
2022-08-04 11:44:10 -04:00
Robin
c36bfc821c
Add support for sending user-defined encrypted to-device messages ( #2528 )
...
* Add support for sending user-defined encrypted to-device messages
This is a port of the same change from the robertlong/group-call branch.
* Fix tests
* Expose the method in MatrixClient
* Fix a code smell
* Fix types
* Test the MatrixClient method
* Fix some types in Crypto test suite
* Test the Crypto method
* Fix tests
* Upgrade matrix-mock-request
* Move useRealTimers to afterEach
2022-08-03 16:16:48 +00:00
Michael Telatynski
07189f0637
Add tests for sendEvent threadId handling ( #2435 )
...
* Add tests for sendEvent threadId handling
* Fix sendEvent threadId relation support not adding `is_falling_back` field
2022-06-07 09:13:01 +00:00
renovate[bot]
a4a50a4a5c
Update jest monorepo (major) ( #2407 )
...
* Update jest monorepo
* -w
* Fix guest rooms test to use async/await instead of a done callback
The done callback was never being called because it relies on a `process.nextTick()` deep within the mock. For this test we don't get a "next tick" because the event loop is busy, so we instead cargocult some test infrastructure from surrounding tests and verify the expected API call was cleared from the queue.
* Enable github-actions reporter
* Don't override local reporters
* Stop DeviceLists at end of tests
* stop more clients
* Fix tests and DRY typing
* Fix client/crypto stopping in tests
* Fix Buffer c'tor deprecated warnings
* Fix devicelist-integ test being excluded due to poor naming
Co-authored-by: Renovate Bot <bot@renovateapp.com >
Co-authored-by: Travis Ralston <travisr@matrix.org >
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com >
2022-05-27 16:16:00 +01:00
Travis Ralston
12253064d1
Convert getLocalAliases to a stable API call ( #2402 )
...
* Convert getLocalAliases to a stable API call
* Appease the linter
2022-05-25 15:56:27 -06:00
Johannes Marbach
f44510e65f
Add support for HTML renderings of room topics ( #2272 )
...
* Add support for HTML renderings of room topics
Based on extensible events as defined in [MSC1767]
Relates to: vector-im/element-web#5180
Signed-off-by: Johannes Marbach <johannesm@element.io >
[MSC1767]: https://github.com/matrix-org/matrix-spec-proposals/pull/1767
* Use correct MSC
* Add overloads for setRoomTopic
* Fix indentation
* Add more tests to pass the quality gate
Co-authored-by: Johannes Marbach <jm@Johanness-Mini.fritz.box >
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com >
2022-05-16 10:37:34 +01:00
Travis Ralston
62d77231af
Remove spec v1.3 check for threads ( #2354 )
...
* Remove spec v1.3 check for threads
Citation: https://matrix.to/#/!ewdjhNcPcEmYNKzlWp:t2l.io/$CkPuvKdFZyFL547JCy5J3MfvLaWUo_a1XEdmiop1PKc?via=matrix.org&via=element.io&via=envs.net
* Enable stable support always for threads
* Fix tests differently
2022-05-09 16:11:04 -06:00
Šimon Brandner
da69ca215b
Implement changes to MSC2285 (private read receipts) ( #2221 )
...
* Add `ReceiptType`
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* Implement changes to MSC2285
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* Improve tests
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* Apply suggestions from review
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* Update `getEventReadUpTo()` to handle private read receipts
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* Write tests for `getEventReadUpTo()`
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* Give `getReadReceiptForUserId()` a JSDOC
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* Types!
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* Try to use receipt `ts`s
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2022-05-06 21:32:41 +02:00
Michael Telatynski
ac5fee0a69
Fix race conditions around threads ( #2331 )
2022-05-03 14:25:17 +01:00
Kerry
34ee566d88
Live location sharing: handle encrypted messages in processBeaconEvents ( #2327 )
...
* handle encrypted locations
Signed-off-by: Kerry Archibald <kerrya@element.io >
* fix processBeaconEvents to handle encrypted events
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-04-28 16:42:37 +02:00
Michael Telatynski
b58d09aa9a
Prevent duplicated re-emitter setups in event-mapper ( #2293 )
2022-04-12 09:42:55 +01:00
Hugh Nimmo-Smith
5937e6a6a8
Support for MSC2457 logout_devices param for setPassword() ( #2285 )
2022-04-09 14:07:33 +01:00
Kerry
f963feab0f
Live location sharing - Aggregate beacon locations on beacons ( #2268 )
...
* add timestamp sorting util
Signed-off-by: Kerry Archibald <kerrya@element.io >
* basic wiring
Signed-off-by: Kerry Archibald <kerrya@element.io >
* quick handle for redacted beacons
Signed-off-by: Kerry Archibald <kerrya@element.io >
* remove fdescribe
Signed-off-by: Kerry Archibald <kerrya@element.io >
* test adding locations
Signed-off-by: Kerry Archibald <kerrya@element.io >
* tidy comments
Signed-off-by: Kerry Archibald <kerrya@element.io >
* test client
Signed-off-by: Kerry Archibald <kerrya@element.io >
* fix monitorLiveness for update
Signed-off-by: Kerry Archibald <kerrya@element.io >
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-04-08 12:26:05 +01:00
Kerry
781fdf4fdc
Live location sharing - update beacon_info implementation to latest MSC ( #2281 )
...
* remove M_BEACON_INFO_VARIABLE
Signed-off-by: Kerry Archibald <kerrya@element.io >
* create beacon_info events with non-variable event type
Signed-off-by: Kerry Archibald <kerrya@element.io >
* remove isBeaconInfoEventType
Signed-off-by: Kerry Archibald <kerrya@element.io >
* refer to msc3673 instead of msc3489
Signed-off-by: Kerry Archibald <kerrya@element.io >
* remove event type suffix
Signed-off-by: Kerry Archibald <kerrya@element.io >
* update beacon identifier to use state key
Signed-off-by: Kerry Archibald <kerrya@element.io >
* fix beacon spec
Signed-off-by: Kerry Archibald <kerrya@element.io >
* fix room-state tests
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add beacon identifier
Signed-off-by: Kerry Archibald <kerrya@element.io >
* dont allow update to older beacon event
Signed-off-by: Kerry Archibald <kerrya@element.io >
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io >
* unnest beacon_info content
Signed-off-by: Kerry Archibald <kerrya@element.io >
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io >
* check redaction event id
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-04-08 10:50:06 +02:00
Michael Telatynski
dde4285cdf
Fix handling of threaded messages around edits & echoes ( #2267 )
2022-04-07 13:46:50 +01:00
Michael Telatynski
d6f1c6cfdc
Fix thread & main timeline partitioning logic ( #2264 )
2022-03-31 13:57:37 +01:00
Michael Telatynski
c541b3f1ce
Fix issues with duplicated MatrixEvent objects around threads ( #2256 )
2022-03-24 12:24:19 +00:00
Kerry
524322280b
add upsert function for updating beacon events ( #2247 )
...
* add upsert function for updating beacon events
Signed-off-by: Kerry Archibald <kerrya@element.io >
* expose event type on beacon model
Signed-off-by: Kerry Archibald <kerrya@element.io >
* allow setting timestamp in beaconinfo content helper
Signed-off-by: Kerry Archibald <kerrya@element.io >
* expose parsed beacon info
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-03-18 09:52:27 +01:00
Kerry
57d71ccd0f
Move test-utils into a directory ( #2236 )
...
* move test-utils.js into directory
Signed-off-by: Kerry Archibald <kerrya@element.io >
* fix imports
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-03-14 14:55:11 +01:00
Germain
9058dbf289
Switch to using stable values for Threads ( #2228 )
2022-03-11 09:04:17 +00:00
Germain
b782dee2ef
Partition root event in thread and room timeline ( #2210 )
2022-03-01 13:04:24 +00:00