Germain
124bfc9328
Make createThread more resilient when missing rootEvent ( #2207 )
2022-02-28 10:02:09 +00:00
Šimon Brandner
53aa34fba5
Support for mid-call devices changes ( #2154 )
...
* Push to `usermediaSenders` in `upgradeCall()`
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* Make sure to enable tracks after a call upgrade
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* Simplify `updateMuteStatus()`
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* Add copyright for 2022
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* Add `updateLocalUsermediaStream()`
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* Support mid-call device changes
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* Use `updateLocalUsermediaStream()` for call upgrades
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* Improve mock classes
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* Add new tests
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2022-02-25 14:52:05 +00:00
Kerry
2ec5acb55d
fix relation sender filter ( #2196 )
...
* fix relation sender filter
Signed-off-by: Kerry Archibald <kerrya@element.io >
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-02-24 09:44:18 +01:00
Michael Telatynski
12e525b664
Improve typing around event emitter handlers ( #2180 )
2022-02-22 12:18:07 +00:00
Robert Long
353d6bab47
Fix and add a test for toDevice ordering
2022-02-18 11:35:56 -08:00
Michael Telatynski
2910e62bb6
Fix synthetic read receipt handling ( #2174 )
2022-02-14 18:45:02 -07:00
Šimon Brandner
12afcd3850
Account for encryption in maySendMessage()
( #2159 )
2022-02-07 15:32:21 +00:00
Andy Balaam
a50a627300
Support m.asset in m.location event content ( #2109 )
2022-01-19 09:08:41 +00:00
Michael Telatynski
652b3a9208
Revert "Remove getCapabilities call for guest users ( #2100 )" ( #2107 )
2022-01-18 09:55:54 +00:00
Travis Ralston
016e24472a
Send extensible events structure and support on-demand parsing ( #2091 )
...
* Parse extensible events on demand
* Decorate messages with MSC1767 when appropriate
We do this automatically to force a pool of messages in the wild we can use for testing.
* Include the SDK
* Appease linter and tests
* Change property name to appease linter
* Update SDK
2022-01-13 09:56:11 -07:00
Michael Telatynski
2d9c938765
Support cancelling events whilst they are in status = ENCRYPTING ( #2095 )
2022-01-11 15:03:33 +00:00
Germain
bd47667e63
Remove getCapabilities call for guest users ( #2100 )
2022-01-11 12:50:10 +00:00
Germain
cfd865bf8b
Fetch server capabilities during client initialisation ( #2093 )
2022-01-11 11:53:30 +00:00
Michael Telatynski
9b54df7b2b
Don't consider alt_aliases when calculating room name ( #2094 )
2022-01-10 13:42:10 -07:00
Michael Telatynski
5da562fa6f
Stop encrypting redactions as it isn't spec compliant ( #2098 )
2022-01-10 17:02:11 +00:00
Michael Telatynski
963c7690b6
Iterate typing to work towards noImplicitAny ( #2061 )
2021-12-14 14:32:35 +00:00
Michael Telatynski
169b6b5572
Filter out falsey opts in /relations API hits ( #2059 )
2021-12-13 15:38:03 +00:00
Aaron R
80aaa6c32b
Fix imports to work with new lint rules ( #2003 )
...
* Add eslint-plugin-import
Signed-off-by: Aaron Raimist <aaron@raim.ist >
* Autofix
Signed-off-by: Aaron Raimist <aaron@raim.ist >
* Manual fix
Signed-off-by: Aaron Raimist <aaron@raim.ist >
2021-12-09 15:57:43 -07:00
Michael Telatynski
f8097221e6
Improve typing ( #2055 )
2021-12-09 14:22:58 +00:00
Hugh Nimmo-Smith
db9936e07c
Standardise content type handling in MSC3089 createFile() and createNewVersion() ( #2014 )
...
* Provide cross platform compatible versions of createFile() and createNewVersion()
The exist implementations are deprecated as they only work in a browser and support a different type of contents from MatrixClient.uploadContent()
* Fix MSC3089 content upload meta data in NodeJS runtime
* Break unstable createFile() and createNewVersion() instead of deprecating
Test using NodeJS types instead of mocked browser Blob
* chore: remove incorrect comment
2021-11-30 09:02:41 +00:00
Matthew Hodgson
a48546f60d
fix the tests (thanks @turt2live!!!)
2021-10-26 15:15:02 -07:00
Šimon Brandner
3aefc9f02e
Add tests for falling back to answering with no video
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-10-14 08:46:36 +02:00
Šimon Brandner
74a875aa23
Add MockMediaDeviceInfo
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-10-10 08:19:29 +02:00
Travis Ralston
eab0c54663
Appease the linter
2021-09-25 20:47:59 -06:00
Travis Ralston
82a254b7bd
Implement file versioning for tree spaces
...
The diff isn't super clear on how this works, but the general idea is that the MSC3089Branches (files) now know which directory they came from, and the directories (MSC3089TreeSpace) can tell when files are triggering uploads referencing themselves so it can add all the replacement metadata onto the event.
There's a few challenges with how relations work in the js-sdk which has shaped the API surface exposed by this change. Specifically, there is a `getVersionHistory()` function instead of a function to get a certain prior version: the js-sdk doesn't track parent events in the relation structures so cannot determine what the event could have replaced.
In order to trigger the built-in relations structures, we must trigger decryption with `emit: true`. This is so an internal listener in the relations system can pick up `Event.decrypted`.
2021-09-25 20:44:17 -06:00
Germain Souquet
f8ec445ff0
Fix addLiveEvent with 'replace' strategy
2021-09-22 17:14:18 +01:00
Šimon Brandner
6addc7dd3d
Add MockMediaStream
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-18 12:27:08 +02:00
Travis Ralston
799606b73c
Merge pull request #1909 from matrix-org/travis/fsdk/locking
...
Add file locking to MSC3089 branches
2021-09-14 12:39:41 -06:00
Travis Ralston
c048f5d357
Merge pull request #1910 from matrix-org/travis/fsdk/tests
...
Add missing tests for MSC3089 implementation
2021-09-14 12:37:54 -06:00
RiotRobot
8ca3a071f9
Merge branch 'master' into develop
2021-09-14 15:51:45 +01:00
David Baker
32d7272939
Tests for key sharing security fix
...
Tests for 894c24880d
2021-09-14 15:24:15 +01:00
Travis Ralston
d9f8710758
Add missing tests for MSC3089 implementation
...
Fixes https://github.com/vector-im/element-web/issues/18461
2021-09-10 14:44:50 -06:00
Travis Ralston
3a9d5439a2
Add tests
2021-09-10 14:18:11 -06:00
Michael Telatynski
3bbb7df72d
fix tests private field access
2021-09-08 12:57:12 +01:00
Michael Telatynski
0830a30498
Fix tests
2021-09-07 14:36:10 +01:00
Travis Ralston
4e2ee3b3a8
It helps to fix the other tests too
2021-08-11 15:18:24 -06:00
Travis Ralston
1f9fab9a0c
Fix conditional on returning file tree spaces
...
If a tree space was deleted then it'll still hold a Room object for us, which is not much help if we're effectively trying to get the joined trees.
2021-08-11 15:11:13 -06:00
Germain Souquet
026260502b
Fix linting issues in TypeScript test files
2021-08-05 11:37:27 +02:00
Šimon Brandner
2d25150a21
Write tests for recursivelyAssign()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-07-28 17:57:16 +02:00
Šimon Brandner
23ab3e3ec0
Test mute metadata gets mapped onto feeds
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-07-28 15:29:28 +02:00
David Baker
a69d9a9f20
Merge pull request #1685 from SimonBrandner/fix/12652/screen-share
...
Support for screen-sharing using multi-stream VoIP (MSC3077)
2021-07-27 15:36:40 +01:00
Brad Murray
4f8c20ddae
Fix reattempting decryption check
2021-07-26 07:49:42 -04:00
Šimon Brandner
019abc7ad8
Merge remote-tracking branch 'upstream/develop' into fix/12652/screen-share
2021-07-25 08:13:23 +02:00
Christian Paul
afa67688f8
Add test for service member who is not a room member
2021-07-20 12:51:08 +02:00
Christian Paul
b8c2a57829
Add test with multiple service_members
2021-07-19 18:17:39 +02:00
Christian Paul
324cd886a2
Merge remote-tracking branch 'origin/develop' into j94/functional-members
2021-07-19 18:00:59 +02:00
Christian Paul
4cf655785e
Add tests
2021-07-19 17:59:11 +02:00
Šimon Brandner
1607ad2111
Merge remote-tracking branch 'upstream/develop' into fix/12652/screen-share
2021-07-16 20:11:39 +02:00
Hubert Chathi
ef8e4d6d35
fix the tests that got broken by the last commit
2021-07-08 11:19:46 -04:00
Hubert Chathi
9f4c5af665
fix test
2021-07-07 20:19:23 -04:00