RiotRobot
526758a07f
v15.0.0-rc.1
2021-10-19 10:50:42 +01:00
RiotRobot
9686fba81e
Prepare changelog for v15.0.0-rc.1
2021-10-19 10:50:41 +01:00
Germain
bbc547fd7f
Merge pull request #1982 from matrix-org/gsouquet/thread-event-new
2021-10-15 14:32:19 +01:00
Germain
7d5dbeaf2d
Merge pull request #1981 from matrix-org/gsouquet/threads-root-guard
2021-10-15 14:32:13 +01:00
Germain Souquet
8c19cf45e2
Dispatch a Thread.New event
2021-10-15 11:09:14 +01:00
Germain Souquet
c9277de8ee
Remove console statement
2021-10-15 10:31:43 +01:00
Germain Souquet
b5baca51a6
Null-guard for thread root event not loaded yet
2021-10-15 10:22:32 +01:00
Germain
fc800821f9
Merge pull request #1980 from matrix-org/gsouquet/threads-relations
2021-10-15 08:53:42 +01:00
Germain Souquet
efbc46937f
Null-guard for event that do not have a thread
2021-10-14 17:37:33 +01:00
Germain Souquet
9ceeb2d220
Delete UnstableValue and use hardcoded value for m.thread
2021-10-14 17:09:00 +01:00
Germain Souquet
7b89862ed0
Make threads use 'm.thread' relation
2021-10-14 16:56:48 +01:00
David Baker
6804e4290a
Merge pull request #1972 from SimonBrandner/feature/answer-no-cam
...
Try to answer a call without video if we can't access the camera
2021-10-14 12:15:35 +01:00
David Baker
0a3d820fda
Merge pull request #1943 from freaktechnik/develop
...
Fix `requestVerificationDM` with chronological `pendingEventOrdering`
2021-10-14 12:14:20 +01:00
Michael Telatynski
e2a9c95ea8
Merge pull request #1974 from SimonBrandner/task/security-ts
2021-10-14 10:02:14 +01: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
0042cb5292
Fix importRoomKeys() definition
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-10-13 16:50:27 +02:00
Denis Kasak
b288c97372
Merge pull request #1975 from matrix-org/dkasak/more-detailed-room-key-sharing-logging
...
More detailed logging when sharing room keys
2021-10-12 13:26:43 +00:00
Denis Kasak
a0de1740a4
Add comma per review
...
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com >
2021-10-12 13:23:22 +00:00
Denis Kasak
8e2e3018d8
Log device objects for existing/new devices when sharing room keys.
2021-10-12 13:48:41 +02:00
Denis Kasak
60e93024e7
Fix comment regarding marking blocked devices as notified.
2021-10-12 13:43:28 +02:00
Denis Kasak
d89aa365f9
More detailed logging of blocked devices.
...
Separately log how many blocked devices there are in total and list them
out.
Then, log how many devices were notified because they were newly
blocked and list those out too.
2021-10-12 13:43:28 +02:00
Denis Kasak
4241263f2c
Make log message regarding notifying unnotified failed devices clearer.
2021-10-12 13:43:26 +02:00
Denis Kasak
b009f9c21b
Log more clearly when we're sharing room keys with *new* Olm sessions.
2021-10-12 13:41:04 +02:00
Denis Kasak
04ccec6de3
Log which devices room keys were shared with.
2021-10-12 13:41:04 +02:00
RiotRobot
e7b41fadd0
Merge branch 'master' into develop
2021-10-12 08:50:43 +01:00
RiotRobot
2dc1acef2e
Resetting package fields for development
2021-10-12 08:36:13 +01:00
RiotRobot
b977b629f4
Merge branch 'release-v14.0.1'
2021-10-12 08:35:42 +01:00
RiotRobot
6bbd493e20
v14.0.1
2021-10-12 08:29:30 +01:00
RiotRobot
38ad435af5
Prepare changelog for v14.0.1
2021-10-12 08:29:30 +01:00
RiotRobot
8f245af317
Merge branch 'master' into develop
2021-10-11 11:48:22 +01:00
RiotRobot
9b2bfbe7d0
v14.0.0
2021-10-11 11:44:54 +01:00
RiotRobot
f69ea85e55
Prepare changelog for v14.0.0
2021-10-11 11:44:53 +01:00
Šimon Brandner
7559a10526
Make opts in importRoomKeys optional
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-10-10 08:36:11 +02:00
Šimon Brandner
68dbe959bb
Add a logline
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-10-10 08:19:29 +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
Šimon Brandner
4b679c5056
Try to answer without video if we can't access it
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-10-10 08:19:22 +02:00
Šimon Brandner
cb8a260b9c
Improve handling when we don't have a camera
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-10-09 08:36:19 +02:00
Robert Long
7d7975b8bb
Fix connecting to a call without a webcam
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-10-09 08:05:59 +02:00
Travis Ralston
f12513da96
Merge pull request #1971 from matrix-org/travis/spam-log
...
Remove excess logging from getRoomUpgradeHistory()
2021-10-08 10:33:07 -06:00
Travis Ralston
785a3e3381
Remove excess logging from getRoomUpgradeHistory()
...
On large accounts this can now cause a massive amount of spam. It's not really providing any value in day-to-day debugging either.
2021-10-08 10:28:20 -06:00
RiotRobot
f5fcc20840
v14.0.0-rc.2
2021-10-07 17:42:40 +01:00
RiotRobot
17e20c17b3
Prepare changelog for v14.0.0-rc.2
2021-10-07 17:42:40 +01:00
Michael Telatynski
39fd350ffe
Merge pull request #1969 from matrix-org/t3chguy/cp/space-hierarchy
2021-10-06 16:51:32 +01:00
Michael Telatynski
b4d100baff
Tweak Room Hierarchy root visibility and add loading getter
2021-10-06 13:29:13 +01:00
Michael Telatynski
29bc83f4a7
Merge pull request #1968 from matrix-org/t3chguy/fix/19276
2021-10-06 13:27:12 +01:00
Michael Telatynski
13c8774d45
Tweak Room Hierarchy root visibility and add loading getter
2021-10-06 10:25:27 +01:00
Travis Ralston
c9212e770d
Merge pull request #1966 from Alexendoo/declaration-map
...
Enable TypeScript declaration maps
2021-10-05 13:39:47 -06:00
Germain
08aa7803e3
Merge pull request #1964 from SimonBrandner/feature/call-feed-opts
2021-10-04 15:02:49 +01:00
Alex Macleod
770858c255
Enable TypeScript declaration maps
...
This allows go-to-definition to reach the original .ts files for
consumers of the package. It emits .d.ts.map files alongside the regular
.d.ts files
e.g. in sdk.createClient go-to-definition on createClient will place the
cursor at the function in src/matrix.ts rather than inside a definition
file lib/matrix.d.ts
Signed-off-by: Alex Macleod <alex@macleod.io >
2021-10-04 14:36:50 +01:00
Germain Souquet
c73bb7d408
Update dependencies
2021-10-04 12:30:14 +01:00
RiotRobot
15cd675354
v14.0.0-rc.1
2021-10-04 11:55:19 +01:00
RiotRobot
e8137d3f88
Prepare changelog for v14.0.0-rc.1
2021-10-04 11:55:19 +01:00
Šimon Brandner
c63abe9988
Use ICallFeedOpts in the CallFeed constructor
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-10-02 08:12:43 +02:00
Germain
a7a08fd760
Merge pull request #1962 from matrix-org/gsouquet/fix-19229
2021-10-01 15:46:30 +01:00
Germain
df51f95fbd
Merge pull request #1963 from matrix-org/gsouquet/fix-19225
2021-10-01 12:11:35 +01:00
Germain Souquet
a14cf1a339
Remove unused DuplicateStrategy
2021-10-01 12:07:16 +01:00
Germain Souquet
30758600f0
Prepend events to thread when fetching the reply chain
2021-10-01 10:49:46 +01:00
Germain
823242a93c
Merge pull request #1959 from psrpinto/fix/joined-rooms-response
2021-09-30 17:54:53 +01:00
Martin Giger
482e3c4cb7
Skip waiting if already sent and abort on cancel
2021-09-30 16:58:08 +02:00
Germain Souquet
1dbd7158ad
Prevent redactions to be sent as pending events
...
Co-authored-by: Dariusz Niemczyk <Palid@users.noreply.github.com >
2021-09-30 13:56:52 +01:00
Michael Telatynski
46b3f0babd
Merge pull request #1958 from SimonBrandner/fix/call-length
2021-09-29 15:04:02 +01:00
Šimon Brandner
b4bc554d7a
Make sure to callLengthInterval only once
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-29 15:46:22 +02:00
Paulo Pinto
1485969493
Return IJoinedRoomsResponse from getJoinedRooms(), instead of string[]
...
Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com >
2021-09-29 11:45:01 +01:00
Travis Ralston
92f7ddcf3e
Merge pull request #1954 from SimonBrandner/task/src-ts
...
Changes for TS migration
2021-09-27 13:45:06 -06:00
Travis Ralston
90d480b4cf
Merge pull request #1952 from matrix-org/travis/fsdk/versions
...
Implement file versioning for tree spaces
2021-09-27 10:04:22 -06:00
RiotRobot
2515d07c8f
Resetting package fields for development
2021-09-27 14:23:47 +01:00
RiotRobot
7acb9416c2
Merge branch 'master' into develop
2021-09-27 14:23:47 +01:00
RiotRobot
095e3a8a88
v13.0.0
2021-09-27 14:20:00 +01:00
RiotRobot
92623a246a
Prepare changelog for v13.0.0
2021-09-27 14:20:00 +01:00
Michael Telatynski
0c4212ca90
Merge pull request #1935 from matrix-org/t3chguy/fix/18969
2021-09-27 11:08:07 +01:00
Germain
9a06a05a75
Merge pull request #1953 from SimonBrandner/fix/audio-upgrade
2021-09-27 10:18:13 +01:00
Šimon Brandner
f05a0615f7
Export IRequestMsisdnTokenResponse
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-27 09:45:07 +02:00
Šimon Brandner
6b93687ff0
Pass correct params to upgradeCall() to upgrade audio
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-26 13:10:00 +02:00
Travis Ralston
8d910d5e26
Merge pull request #1950 from SimonBrandner/feature/flexible-answer
...
Allow answering calls without audio/video
2021-09-25 23:39:20 -06:00
Šimon Brandner
9264050f41
Update src/webrtc/call.ts
...
Co-authored-by: Travis Ralston <travpc@gmail.com >
2021-09-26 07:26:08 +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
Šimon Brandner
0f6a59ed98
Allow answering calls without audio/video
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-25 10:00:51 +02:00
Travis Ralston
afb4682987
Merge pull request #1949 from SimonBrandner/fix/mic-state
...
Fix not returning new mic mute state
2021-09-25 01:14:11 -06:00
Šimon Brandner
a18326519b
Add missing return statement
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-25 08:26:13 +02:00
Germain
b033540f95
Merge pull request #1948 from matrix-org/gsouquet/fix-sync-partitioning
2021-09-24 15:43:27 +01:00
Germain Souquet
ff529d733d
Fix event partitioning from non threading ready clients
2021-09-24 14:54:40 +01:00
Germain
5951958c05
Merge pull request #1945 from matrix-org/gsouquet/thread-serialise-18720
2021-09-24 11:17:39 +01:00
David Baker
886f2fb95d
Merge pull request #1947 from matrix-org/dbkr/we_like_tests
...
Add tests requirements to CONTRIBUTING
2021-09-23 18:15:32 +01:00
David Baker
f6ce0c581e
Add tests requirements to CONTRIBUTING
...
Fixes https://github.com/vector-im/element-web/issues/19136
2021-09-23 14:09:01 +01:00
Germain
5ce68b6c12
Merge pull request #1944 from matrix-org/gsouquet/thread-state-events-18719
2021-09-23 09:17:02 +01:00
Germain Souquet
c748aebfc5
Add context to explain why we fetch roomstate in threads
2021-09-22 17:36:12 +01:00
Germain Souquet
f8ec445ff0
Fix addLiveEvent with 'replace' strategy
2021-09-22 17:14:18 +01:00
Germain Souquet
5d4f347eaa
Add thread serialisation helper
2021-09-22 11:35:19 +01:00
Germain Souquet
1359c0574e
Share room state events with thread's timelines
2021-09-22 11:19:08 +01:00
Travis Ralston
b1d239b292
Merge pull request #1934 from aaronraimist/kick-api
...
Switch to /kick API
2021-09-21 23:30:23 -06:00
Travis Ralston
70031415e8
Merge pull request #1938 from matrix-org/travis/fix-widgets-relations
...
Ensure unencrypted fields get exposed by getEffectiveEvent()
2021-09-21 23:16:18 -06:00
Martin Giger
3c97d17770
Fix requestVerificationDM with chronological pendingEventOrdering
...
Signed-off-by: Martin Giger <martin@humanoids.be >
2021-09-21 20:04:07 +02:00
Travis Ralston
5a73a9758a
Merge pull request #1941 from SimonBrandner/feature/bound
...
Add `bound` to `IThreepid`
2021-09-21 11:36:36 -06:00
Travis Ralston
6848e96244
Merge pull request #1942 from SimonBrandner/feature/trusted_locally
...
Add `trusted_locally` to `TrustInfo`
2021-09-21 11:26:35 -06:00
Travis Ralston
b53566e074
Merge pull request #1827 from SimonBrandner/feature/call-upgrades
...
Support for call upgrades
2021-09-21 09:10:02 -06:00
Šimon Brandner
012b914a97
Add trusted_locally to TrustInfo
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-21 16:20:39 +02:00
Šimon Brandner
3c6eed0135
Add bound to IThreepid
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-21 14:56:33 +02:00
RiotRobot
f2a2e7f5dd
v13.0.0-rc.1
2021-09-21 09:24:22 +01:00
RiotRobot
15b6a9a257
Prepare changelog for v13.0.0-rc.1
2021-09-21 09:24:21 +01:00
Šimon Brandner
b83977e72f
Add @param docs
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-20 16:40:46 +02:00
Travis Ralston
8f5082cd2f
Merge pull request #1940 from SimonBrandner/feature/getHistoryVisibility
...
Add `getHistoryVisibility()` and `getGuestAccess()`
2021-09-20 08:34:14 -06:00
David Baker
50c877cb60
Merge pull request #1939 from SimonBrandner/fix/stream-stopping
...
Fix stream stopping and improve logging
2021-09-20 11:56:36 +01:00
Šimon Brandner
e3e7fd5900
Add getGuestAccess()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-19 10:47:18 +02:00
Šimon Brandner
69823f9cae
Add getHistoryVisibility()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-19 10:36:45 +02:00
Šimon Brandner
e5dcdf109a
Fix stream stopping and improve logging
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-19 09:29:16 +02:00
Šimon Brandner
5c6a643436
Merge branch 'feature/call-upgrades' of https://github.com/SimonBrandner/matrix-js-sdk into feature/call-upgrades
2021-09-19 07:44:40 +02:00
Šimon Brandner
1ca1a69eb8
Fix docs
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-19 07:44:28 +02:00
Šimon Brandner
76ea1ba192
Improve log
...
Co-authored-by: Travis Ralston <travpc@gmail.com >
2021-09-19 07:43:09 +02:00
Šimon Brandner
8cd8ec134e
Merge remote-tracking branch 'upstream/develop' into feature/call-upgrades
2021-09-19 07:42:04 +02:00
Travis Ralston
6c649e2bfe
Merge pull request #1937 from SimonBrandner/fix/getUserMediaStream
...
Fix `getUserMediaStream()` not being able to handle streams of different track combinations
2021-09-18 16:29:15 -06:00
Travis Ralston
9f42647a75
Ensure unencrypted fields get exposed by getEffectiveEvent()
...
Fixes https://github.com/vector-im/element-web/issues/19062
2021-09-18 16:26:08 -06:00
Šimon Brandner
9747e5e0d5
Fix getUserMediaStream() not being able to handle streams of different track combinations
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-18 13:18:28 +02:00
Šimon Brandner
a4cacbc73a
Add call upgrade support
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-18 12:32:13 +02:00
Šimon Brandner
f24840d09c
Make CallFeed handle addTrack events
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-18 12:31:54 +02:00
Šimon Brandner
acb7991cc5
Fix getUserMediaStream() not being able to handle streams of different track combinations
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-18 12:27:24 +02:00
Šimon Brandner
6addc7dd3d
Add MockMediaStream
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-18 12:27:08 +02:00
Eric Eastwood
2bd60f4160
Merge pull request #1933 from matrix-org/madlittlemods/more-better-pr-descriptions
...
Update PR guidelines for easier review
2021-09-17 11:54:13 -05:00
David Baker
e71362a6df
Merge pull request #1936 from matrix-org/dbkr/await_save_backup_key
...
Fix race on automatic backup restore
2021-09-17 17:06:43 +01:00
David Baker
673c09cd77
Fix race on automatic backup restore
...
We forgot to await the saving of the backup key, so there was a race
where it would fail to get the backup key because it hadn't been saved
yet, so the backup wouldn't be restored automatically.
Fixes https://github.com/vector-im/element-web/issues/17781
2021-09-17 15:53:14 +01:00
Michael Telatynski
4606422e57
Make RoomState::hasSufficientPowerLevelFor public
2021-09-17 15:35:03 +01:00
Dariusz Niemczyk
4bc8f968e0
Merge pull request #1932 from matrix-org/palid/threads-typescriptify
...
Fix PR comments
2021-09-17 08:11:36 +02:00
Aaron Raimist
35ee58dfe1
Switch to /kick API
...
Signed-off-by: Aaron Raimist <aaron@raim.ist >
2021-09-17 01:05:21 -05:00
Eric Eastwood
3705426b6d
Make PR's easier to review
2021-09-16 16:05:49 -05:00
Dariusz Niemczyk
5813aea27f
Properly rename ThreadEvents to ThreadEvent
2021-09-16 17:49:31 +02:00
Dariusz Niemczyk
5ba836a31b
Fix PR comments
2021-09-16 17:12:57 +02:00
Dariusz Niemczyk
4f387d15b9
Merge pull request #1930 from matrix-org/palid/threads-typescriptify
...
Typescriptify thread events a bit
2021-09-16 17:12:02 +02:00
Dariusz Niemczyk
8ab0246ca2
Fix PR comments
2021-09-16 16:03:47 +02:00
Dariusz Niemczyk
ed68bd4108
Typescriptify thread events a bit
2021-09-16 15:59:41 +02:00
Dariusz Niemczyk
3d39e8ec26
Merge pull request #1880 from matrix-org/palid/fix/dont-persist-log-level
...
Palid/fix/dont persist log level
2021-09-16 14:52:52 +02:00
Robert Long
53bdab7cc8
Merge pull request #1929 from matrix-org/robertlong/datachannels
...
Add WebRTC DataChannels to MatrixCall
2021-09-15 14:25:13 -07:00
Robert Long
fafa55ba1d
Merge pull request #1928 from matrix-org/robertlong/clone-streams
...
Clone and stop local media streams from mediaHandler
2021-09-15 14:25:00 -07:00
Travis Ralston
3a818c1419
Merge pull request #1927 from SimonBrandner/feature/getBuffer
...
Add `getBuffer()` to `QRCodeData`
2021-09-15 14:42:11 -06:00
Robert Long
422853298c
Reset media stream arrays
2021-09-15 13:20:52 -07:00
Robert Long
f3a2bd6b40
Clean up stopAllMedia
2021-09-15 12:38:12 -07:00
Robert Long
6834137f50
Add datachannels to MatrixCall
2021-09-15 12:28:09 -07:00
Robert Long
c4d7fef0cd
Clone and stop local media streams from mediaHandler
2021-09-15 12:08:28 -07:00
Šimon Brandner
556b5ff628
Add getBuffer() to QRCodeData
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-15 20:27:13 +02:00
David Baker
2daa1ec4ce
Merge pull request #1916 from matrix-org/dbkr/verify_key_share_tests
...
Tests for key sharing security fix
2021-09-15 18:38:03 +01:00
Travis Ralston
348ea72b70
Merge pull request #1925 from SimonBrandner/task/setCodecPreferences
...
Add `setCodecPreferences()` to `global.d.ts`
2021-09-15 09:48:27 -06:00
Šimon Brandner
4e14d810c5
Add setCodecPreferences()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-15 17:44:16 +02:00
Travis Ralston
f84905b003
Merge pull request #1924 from SimonBrandner/revert-1923-task/die-rtx-hack
...
Revert "Remove RTX codec hack "
2021-09-15 09:23:27 -06:00
Šimon Brandner
9bb87145f6
Revert "Remove RTX codec hack "
2021-09-15 17:17:56 +02:00
Travis Ralston
c7675570aa
Merge pull request #1923 from SimonBrandner/task/die-rtx-hack
...
Remove RTX codec hack
2021-09-15 09:16:55 -06:00
Šimon Brandner
be942fd66a
Remove RTX codec hack as the issue is no longer present on Chromium 90
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-15 16:38:59 +02:00
James Salter
8544aca362
Merge pull request #1922 from matrix-org/revert-errors-ts
...
Revert "Migrate errors to TypeScript"
2021-09-15 12:08:32 +01:00
James Salter
c3308e1de9
Revert "Migrate errors to TypeScript"
...
This reverts commit ab906faa17 .
2021-09-15 12:01:34 +01:00
David Baker
047d7125a1
Merge pull request #1920 from matrix-org/dbkr/fix_autodiscovery_types
...
Fix types
2021-09-15 11:29:10 +01:00
David Baker
cf4d3117c1
Fix types
...
This is 'any' (defined as any by IWellKnownConfig.raw) rather than
string (which the jsdoc claimed). We were calling this method ourselves
but with an object that was also 'any', so it was fine, but react-sdk
calls it with an object literal, which typescript knows it not a string.
2021-09-15 10:29:14 +01:00
David Baker
88c2844e48
Merge pull request #1919 from matrix-org/dbkr/yarnupgrade_20210914
...
yarn upgrade
2021-09-15 10:01:18 +01:00
Germain
6ca4694fe6
Merge pull request #1907 from matrix-org/gsouquet/ts-last-push
2021-09-15 08:30:52 +01:00
Germain
062287e270
Merge pull request #1913 from matrix-org/gsouquet/ts-security
2021-09-15 08:27:29 +01:00
Germain Souquet
50e0d76f10
remove erroneous comment related to typings
2021-09-15 09:26:25 +02:00
Travis Ralston
df039d3d8c
Merge pull request #1911 from SimonBrandner/feature/media-handling
...
Improve `MatrixCall` media handling and internally remove `CallType`s
2021-09-14 14:40:45 -06: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
Robert Long
f712a8cecb
Merge pull request #1903 from matrix-org/robertlong/fix-register-types
...
Add types for the MatrixClient register method
2021-09-14 10:56:12 -07:00
David Baker
e1d8d6bf4e
Not typescript again
...
because this time they just removed setCodecPreferences from webrtc?
2021-09-14 18:52:35 +01:00
Robert Long
14ed8a110c
Update src/client.ts
...
Co-authored-by: Travis Ralston <travisr@matrix.org >
2021-09-14 10:50:50 -07:00
David Baker
cb6700f21b
yarn upgrade
2021-09-14 18:41:14 +01:00
Travis Ralston
d4f35bf07a
fix main package?
2021-09-14 10:03:23 -06:00
RiotRobot
b4eb29138b
Resetting package fields for development
2021-09-14 15:52:38 +01:00
RiotRobot
8ca3a071f9
Merge branch 'master' into develop
2021-09-14 15:51:45 +01:00
RiotRobot
5abd211436
Merge branch 'release-v12.5.0'
2021-09-14 15:51:13 +01:00
RiotRobot
99f428e091
v12.5.0
2021-09-14 15:46:09 +01:00
RiotRobot
a734fdf9b0
Prepare changelog for v12.5.0
2021-09-14 15:46:08 +01:00
David Baker
6f91b2bc80
Merge pull request #1917 from matrix-org/dbkr/verify_keyshare_tests_125rel
...
Tests for key sharing security fix
2021-09-14 15:33:05 +01:00
David Baker
32d7272939
Tests for key sharing security fix
...
Tests for 894c24880d
2021-09-14 15:24:15 +01:00
David Baker
c8d85452bf
Merge remote-tracking branch 'origin/develop' into dbkr/verify_key_share_tests
2021-09-14 15:16:49 +01:00
RiotRobot
557f800919
Verify target device key on reshare
2021-09-14 15:14:46 +01:00
David Baker
2119e88c78
Tests for key sharing security fix
...
Tests for 894c24880d
2021-09-14 13:11:18 +01:00
Travis Ralston
24e7a7e6bf
Merge pull request #1915 from SimonBrandner/feature/has-been-cancelled
...
Add `hasBeenCancelled` to `VerificationBase`
2021-09-13 20:54:03 -06:00
Šimon Brandner
4e5847f356
Add hasBeenCancelled to VerificationBase
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-13 18:01:24 +02:00
RiotRobot
72d580edfd
Merge branch 'master' into develop
2021-09-13 12:50:02 +01:00
RiotRobot
e878b7683b
v12.4.1
2021-09-13 12:47:04 +01:00
RiotRobot
fac700bf4d
Changelog for 12.4.1
2021-09-13 12:43:13 +01:00
RiotRobot
894c24880d
Verify target device key on reshare
2021-09-13 12:34:48 +01:00
Germain
d742249fd1
Merge pull request #1914 from matrix-org/gsouquet/ts-misc
...
Types adjustment for TS migration
2021-09-13 10:00:26 +01:00
Germain Souquet
9c100fea48
Types update for UserView TS migration
2021-09-12 10:12:59 +02:00
Germain Souquet
7daab62850
Types fixes for CreateKeyBackupDialog TS migration
2021-09-12 09:21:04 +02:00
Germain Souquet
fed0ced89d
Type fixes for CreateSecretStorageDialog TS migration
2021-09-12 08:56:31 +02:00
Germain Souquet
df9cfaed1d
Merge branch 'develop' into gsouquet/ts-last-push
2021-09-11 16:18:25 +01:00
Germain Souquet
edd614dd0c
fix cyclic dependencies for AutoDiscoveryActionEnum
2021-09-11 16:17:40 +01:00
Germain Souquet
375b228bb2
fix missing types and linting errors
2021-09-11 16:06:29 +01:00
Šimon Brandner
7143ef8a32
Internally remove call types
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-11 08:21:58 +02:00
Šimon Brandner
1bd7de5a18
Use MediaHandler
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-11 08:21:57 +02:00
Šimon Brandner
a1f73eee86
Add MediaHandler
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-11 08:21:51 +02: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
Travis Ralston
5d1be6e8be
Add file locking to MSC3089 branches
...
This isn't hooked up to versioning, yet, but will be eventually.
2021-09-10 14:15:32 -06:00
Germain
775e85a2e8
Merge pull request #1906 from matrix-org/gsouquet/threads-relations-18721
2021-09-10 19:22:41 +01:00
Travis Ralston
dc8f403c44
Merge pull request #1908 from SimonBrandner/task/dialogs-ts
...
Add `ISasEvent`
2021-09-10 12:17:41 -06:00
Šimon Brandner
cf9fa991d1
Add ISasEvent
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-10 19:18:19 +02:00
Robert Long
d26dc49755
Merge pull request #1904 from matrix-org/robertlong/callfeed-dispose
...
Properly dispose of CallFeeds
2021-09-10 10:07:10 -07:00
Germain
be04559a66
Merge pull request #1878 from SimonBrandner/task/i-hate-my-code
2021-09-10 16:16:51 +01:00
Germain Souquet
0722dafe58
Migrate AutoDiscovery to TypeScript
2021-09-10 16:04:55 +01:00
Germain Souquet
ab906faa17
Migrate errors to TypeScript
2021-09-10 15:39:36 +01:00
Germain Souquet
9d63a12469
Migrate realtime-callbacks to TypeScript
2021-09-10 15:31:21 +01:00
Germain Souquet
f40d0d24c7
Move relations and redactions to thread timeline
2021-09-10 09:21:25 +01:00
Germain Souquet
2cdea36abf
Merge branch 'develop' into gsouquet/threads-relations-18721
2021-09-10 08:18:03 +01:00
Travis Ralston
8d4f4c8832
Merge pull request #1901 from matrix-org/travis/rl/perf-metrics
...
[Release] Exclude opt-in Element performance metrics from encryption
2021-09-09 18:27:25 -06:00
Robert Long
3b4dcbb01d
Properly dispose of CallFeeds
2021-09-09 17:15:41 -07:00
Robert Long
b52f3b1c57
Add types for the MatrixClient register method
2021-09-09 17:00:45 -07:00
Germain
2cdf5629e5
Merge pull request #1900 from matrix-org/gsouquet/thread-disable-echo
2021-09-09 18:56:02 +01:00
Germain Souquet
97b4f0e369
restore correct local echo
2021-09-09 18:51:12 +01:00
Germain Souquet
a508c8d236
Make supportsExperimentalThreads calls more resilient
2021-09-09 18:40:15 +01:00
Travis Ralston
7911e6371a
Exclude opt-in Element performance metrics from encryption
...
This is needed for the system which is meant to be monitoring this metadata. See https://github.com/matrix-org/matrix-react-sdk/pull/6766
2021-09-09 10:41:09 -06:00
Travis Ralston
bbace01e9a
Merge pull request #1897 from matrix-org/travis/measure-encryption-perf
...
Exclude opt-in Element performance metrics from encryption
2021-09-09 10:38:18 -06:00
Germain Souquet
87469fea63
Disable pending events for threads
...
There's a fair few things to update to make them work with Threads
Will get back to it when the plan is to build a more polished UI ready for production
2021-09-09 17:24:55 +01:00
Germain Souquet
48a9db0315
Add helper to check threads support
2021-09-09 17:24:34 +01:00
Germain Souquet
33c9471112
Make timelineSet public readonly
2021-09-09 17:23:45 +01:00
Travis Ralston
04fdcbb672
Exclude opt-in Element performance metrics from encryption
...
This is needed for the system which is meant to be monitoring this metadata. See https://github.com/matrix-org/matrix-react-sdk/pull/6766
2021-09-08 11:34:01 -06:00
Michael Telatynski
4d2286c5be
Merge pull request #1888 from matrix-org/t3chguy/ts1234
2021-09-08 16:59:17 +01:00
Michael Telatynski
620e45e4dc
fix typing mishap
2021-09-08 16:56:19 +01:00
Michael Telatynski
fb97e74344
iterate PR based on feedback
2021-09-08 16:49:17 +01:00
Michael Telatynski
3bbb7df72d
fix tests private field access
2021-09-08 12:57:12 +01:00
Michael Telatynski
58b08821bf
Fix bugs identified by TS
2021-09-08 12:49:30 +01:00
Michael Telatynski
19bdfd5b84
Add missing interface
2021-09-08 12:49:22 +01:00
Michael Telatynski
b6c857e2a2
Convert crypto/verification/* to Typescript
2021-09-08 12:34:44 +01:00
Michael Telatynski
0991626e85
Merge pull request #1884 from matrix-org/t3chguy/ts/123
2021-09-08 10:03:25 +01:00
Germain
7b10d4fac0
Merge pull request #1886 from janpawellek/janpawellek-fix-removeEventListener
...
Fix calling removeEventListener if it does not exist
2021-09-08 09:13:27 +01:00
Jan Pawellek
980dacaa87
Add explaination why the check for global.window.removeEventListener is necessary
2021-09-08 09:59:09 +02:00
Travis Ralston
3790e8abb4
Merge pull request #1887 from matrix-org/revert-1872-fix/call-notifs
...
Revert "Count notifications in encrypted rooms client-side"
2021-09-07 14:15:15 -06:00
Travis Ralston
14ba851daf
Revert "Count notifications in encrypted rooms client-side"
2021-09-07 14:15:01 -06:00
Travis Ralston
95d80772d7
Merge pull request #1872 from SimonBrandner/fix/call-notifs
...
Count notifications in encrypted rooms client-side
2021-09-07 12:31:49 -06:00
RiotRobot
341e936082
v12.5.0-rc.1
2021-09-07 18:20:07 +01:00
RiotRobot
e87399c4a1
Prepare changelog for v12.5.0-rc.1
2021-09-07 18:20:06 +01:00
Jan Pawellek
a7678ea1e0
Fix calling removeEventListener if it does not exist
2021-09-07 17:12:21 +02:00
Germain
0388bd3b48
Merge pull request #1885 from matrix-org/gsouquet/improve-threads-dedupe
2021-09-07 15:31:56 +01:00
Germain Souquet
f27327164b
Merge branch 'develop' into gsouquet/improve-threads-dedupe
2021-09-07 15:28:05 +01:00
Germain
a0f85075c1
Merge pull request #1882 from matrix-org/gsouquet/fix-replyinthread
2021-09-07 15:26:35 +01:00
Germain Souquet
e97d18a03b
Improve thread deduplication thread process
...
Some threads were still holding a reference to the original thread models they were assigned to, leading to some unexpected timeline rendering
2021-09-07 15:05:45 +01:00
Michael Telatynski
f07cdb43b1
Fix dehydration Crypto type
2021-09-07 14:39:49 +01:00
Michael Telatynski
da8c8f166d
Improve jsdoc
2021-09-07 14:36:20 +01:00
Michael Telatynski
0830a30498
Fix tests
2021-09-07 14:36:10 +01:00
Michael Telatynski
68a2762b75
fix forwarding_curve25519_key_chain in OlmDevice::exportInboundGroupSession
2021-09-07 13:29:42 +01:00
Michael Telatynski
666e471369
Convert OlmDevice to Typescript
2021-09-07 13:22:27 +01:00
Germain Souquet
d89f4a74f9
Fix replyInThread getter to match event m.in_reply_to structure
2021-09-07 10:20:01 +01:00
Germain Souquet
191535d01a
Fix replyInThread getter to match event m.in_reply_to structure
2021-09-07 10:17:24 +01:00
Šimon Brandner
241203f804
Merge remote-tracking branch 'upstream/develop' into fix/call-notifs
2021-09-03 18:28:34 +02:00
Šimon Brandner
26cc7a0f64
Return a TODO
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-03 18:24:37 +02:00
Travis Ralston
324f9e58ea
Merge pull request #1873 from SimonBrandner/feature/call-timer/18566
...
Give `MatrixCall` the capability to emit `LengthChanged` events
2021-09-02 22:12:31 -06:00
Dariusz Niemczyk
e71519c638
Remove persisted log levels
2021-09-02 20:17:32 +02:00
Šimon Brandner
9b6cee0cab
Merge remote-tracking branch 'upstream/develop' into fix/call-notifs
2021-09-02 16:32:26 +02:00
Germain Souquet
2a5f6a7b3d
Move all relations event in thread timeline
...
If an event is related to another event who's in a thread, we want to make sure to move that event to the thread's timeline
2021-09-02 14:14:30 +01:00
Šimon Brandner
cae03817cb
Use source id directly
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-02 14:10:43 +02:00
Germain
37736184a0
Merge pull request #1876 from matrix-org/gsouquet/replies-fix-18717
...
Add reply events rendering hint
2021-09-02 08:37:11 +01:00
Šimon Brandner
9431a52abe
Move DesktopCapturerSource out of global.d.ts
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-01 18:22:51 +02:00
Šimon Brandner
13c664ad34
Remove Element-specifc screen-sharing code out of the js-sdk
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-01 18:22:45 +02:00
Šimon Brandner
d7640d9e15
Don't use a callback in setScreensharingEnabled()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-01 18:08:59 +02:00
Michael Telatynski
3c36be9839
Merge pull request #1877 from matrix-org/t3chguy/fix/18798
2021-09-01 16:08:37 +01:00
Michael Telatynski
9dce7bbb97
Improve typing around join rules
2021-09-01 15:54:04 +01:00
Germain Souquet
fa44300abc
Add reply events rendering hint
...
Adds an unstable hint for clients to know whether to render an event in the room timeline or in a thread
There are currently no MSC associated with that unstable "io.element.in_thread" property as I am only experimenting before settling on a specific approach
2021-09-01 12:12:01 +01:00
RiotRobot
2783d162b7
Resetting package fields for development
2021-08-31 13:32:29 +01:00
RiotRobot
39566dbd4f
Merge branch 'master' into develop
2021-08-31 13:32:28 +01:00
RiotRobot
f8186add92
v12.4.0
2021-08-31 13:29:19 +01:00
RiotRobot
c15f22e81d
Prepare changelog for v12.4.0
2021-08-31 13:29:18 +01:00
Michael Telatynski
052ac8f95b
Merge pull request #1874 from SimonBrandner/task/call-types
...
Improve TypeScript in `MatrixCall`
2021-08-31 13:06:23 +01:00
Šimon Brandner
c37f8ba4c7
Make placeCalls public
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-31 14:00:37 +02:00
Germain
7e2458d5b5
Merge pull request #1828 from matrix-org/gsouquet/threaded-messaging-2349
2021-08-31 09:19:48 +01:00
Germain
fe989177bb
Merge pull request #1875 from psrpinto/fix/browser-example
2021-08-31 09:15:39 +01:00
Paulo Pinto
412645f025
Use HTTPS
...
Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com >
2021-08-30 13:32:30 +01:00
Paulo Pinto
e527c46f34
Add empty favicon
...
Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com >
2021-08-30 13:32:30 +01:00
Paulo Pinto
da471b57ad
Define document encoding
...
Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com >
2021-08-30 13:32:30 +01:00
Paulo Pinto
a4ff97c8df
Add required lang attribute
...
Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com >
2021-08-30 13:32:30 +01:00
Šimon Brandner
411fc47f28
Improve TypeScript in MatrixCall
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-28 09:27:47 +02:00
Šimon Brandner
b97e3113d1
Add/improve call event content types
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-28 09:27:34 +02:00
Šimon Brandner
f107d63fab
Give MatrixCall the capability to emit LengthChanged events
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-27 15:06:55 +02:00
Šimon Brandner
a65ac5a82b
Count notifications in encrypted rooms client-side
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-27 08:38:59 +02:00
Šimon Brandner
c7c1db00e8
Use getWirePushActions()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-26 20:01:40 +02:00
Šimon Brandner
824f93daa3
Add wirePushRules
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-26 20:01:39 +02:00
Šimon Brandner
9fec2f8c58
Simplifie some code
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-26 20:01:39 +02:00
Šimon Brandner
0b46389176
currentCount -> currentHighlightCount
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-26 20:01:38 +02:00
Šimon Brandner
db03f16b8e
Add a type
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-26 20:01:37 +02:00
David Baker
f83fcb1a18
Merge pull request #1870 from matrix-org/dbkr/allchange102
...
Update changelog generator
2021-08-26 09:42:37 +01:00
David Baker
ba0f1f86b9
Merge pull request #1871 from matrix-org/dbkr/verification_request_cancel
...
Fix verification request cancellation
2021-08-26 09:40:53 +01:00
David Baker
81d349d993
Clarify operator precedence
2021-08-25 20:55:03 +01:00
David Baker
d65d2b94b9
Fix verification request cancellation
...
If you started trying to verify against your other devices and
then cancelled the dialog, the device destination in the cancellation
to-device message would be 'null', so the cancellation wouldn't go
anywhere.
If we haven't yet picked a specific device to talk to, send the
cancellation to all devices (like we did the request).
2021-08-25 18:37:45 +01:00
David Baker
acd52bc070
Update changelog generator
2021-08-25 17:19:25 +01:00
David Baker
a64339763f
Merge pull request #1869 from matrix-org/dbkr/yarn_upgrade_20210824
...
yarn upgrade
2021-08-25 16:39:45 +01:00
David Baker
4f21b95bbf
Merge pull request #1865 from SimonBrandner/feature/voice-activity
...
Give `CallFeed` the capability to emit on volume changes
2021-08-25 14:40:24 +01:00
David Baker
03e4dcf1ed
yarn upgrade
2021-08-25 10:57:37 +01:00
Germain Souquet
3c56d1372d
Appease the linter
2021-08-25 09:15:07 +01:00
Germain Souquet
27ecdef09b
Merge branch 'develop' into gsouquet/threaded-messaging-2349
2021-08-25 08:53:29 +01:00
RiotRobot
121e8a51c1
v12.4.0-rc.1
2021-08-24 17:04:11 +01:00
RiotRobot
88e3ada701
Prepare changelog for v12.4.0-rc.1
2021-08-24 17:04:10 +01:00
Dariusz Niemczyk
92d822d494
Merge pull request #1847 from matrix-org/jaller94-patch-2
...
SSSSCryptoCallbacks.getSecretStorageKey: Test if delegateCryptoCallbacks has getSecretStorageKey
2021-08-24 15:24:54 +02:00
Travis Ralston
62c93f54cc
Merge pull request #1818 from matrix-org/t3chguy/fix/18089
...
Add support for /hierarchy API and fall back to /spaces API if needed
2021-08-23 15:51:28 -06:00
Germain Souquet
500c2ed4f2
Remove thread spec
2021-08-23 15:03:10 +01:00
Šimon Brandner
425362edfe
Emit Speaking events from CallFeed
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-19 14:48:26 +02:00
Germain Souquet
9c554f9b3d
Add experimentalThreadSupport flag
2021-08-19 11:18:46 +01:00
Germain Souquet
b7a5f81f95
Add experimental indicators for all threading related features
2021-08-19 11:10:20 +01:00
Šimon Brandner
0746a64c83
Add some docs
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-19 12:03:57 +02:00
Šimon Brandner
22cd475d22
Add missing types
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-19 11:49:26 +02:00
Šimon Brandner
6904f6b36f
Emit volume changes
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-19 11:49:19 +02:00
Šimon Brandner
e25a649e1a
Add webkitAudioContext to window
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-19 11:49:18 +02:00
Germain Souquet
0eb8cbee4d
Merge branch 'develop' into gsouquet/threaded-messaging-2349
2021-08-19 10:45:23 +01:00
Dariusz Niemczyk
96e8f65af7
Merge pull request #1864 from matrix-org/palid/dx/typescriptify-password-reset
...
Add necessary changes for PasswordReset migration
2021-08-19 10:42:59 +02:00
Dariusz Niemczyk
8fb036ba2d
Make eslint happy
2021-08-19 09:46:54 +02:00
Dariusz Niemczyk
0a10fa12ef
Add necessary changes for PasswordReset migration
2021-08-19 08:59:55 +02:00
David Baker
e30dad7913
Merge pull request #1859 from SimonBrandner/task/revert-quick-voip-fix
...
Revert quick VoIP fix
2021-08-18 18:50:37 +01:00
Travis Ralston
c2a0c02898
Merge pull request #1850 from matrix-org/travis/fsdk/filemeta
...
Add method for including extra fields when uploading to a tree space
2021-08-18 07:29:49 -06:00
Dariusz Niemczyk
7c1e89f86a
Merge pull request #1849 from matrix-org/jaller94-patch-3
...
Make delegateCryptoCallbacks an optional parameter of EncryptionSetupBuilder and SSSSCryptoCallbacks
2021-08-18 14:01:44 +02:00
Germain
29f8a4cba2
Merge pull request #1853 from matrix-org/gsouquet/ts-components-migration
...
Expose IMyDevice interface
2021-08-18 12:35:57 +01:00
Germain Souquet
b884accc99
Dispatch thread events
2021-08-17 17:43:00 +01:00
Germain Souquet
d56540320e
Merge branch 'develop' into gsouquet/threaded-messaging-2349
2021-08-17 11:14:10 +01:00
Germain Souquet
526fe7e9a4
use timeline set instead of an array of events
2021-08-17 11:10:20 +01:00
Germain Souquet
aa696c4c15
Move threading logic to the Sync API
2021-08-17 10:37:34 +01:00
RiotRobot
3216d7e5a7
Merge branch 'master' into develop
2021-08-17 09:27:42 +01:00
RiotRobot
b68f649414
v12.3.1
2021-08-17 09:24:43 +01:00
RiotRobot
543f35d9a8
Prepare changelog for v12.3.1
2021-08-17 09:24:42 +01:00
David Baker
03d42a98cd
Merge pull request #1862 from matrix-org/dbkr/release_script_handle_no_signing_id_rel_take_2
...
Fix release script to handle no signing ID
2021-08-17 09:19:30 +01:00
David Baker
4f48554cd2
Merge pull request #1861 from matrix-org/dbkr/release_script_handle_no_signing_id_rel
...
Fix release script to handle no signing ID
2021-08-17 09:13:59 +01:00
David Baker
85d9c0f403
Merge pull request #1860 from matrix-org/dbkr/1858_rel
...
Fix multiple VoIP regressions
2021-08-17 09:11:36 +01:00
David Baker
66b4279dd8
Fix release script to handle no signing ID
...
We now use the file for stuff other than just the signing ID, so
the file may be present but with no signing ID: handle this case.
2021-08-17 09:10:11 +01:00
Šimon Brandner
1ee84fbeca
Fix regressions
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-17 09:06:53 +01:00
Šimon Brandner
c0e15b206a
Revert "Fix regressions"
...
This reverts commit bd8690de57 .
2021-08-17 10:03:46 +02:00
David Baker
290575ba65
Merge pull request #1858 from SimonBrandner/fix/voip
...
Fix broken voice calls, no ringing and broken call notifications
2021-08-17 08:54:11 +01:00
Šimon Brandner
bd8690de57
Fix regressions
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-17 08:09:14 +02:00
Šimon Brandner
0d09f87777
Revert "Revert "Fix glare related regressions""
...
This reverts commit 4c552cc350 .
2021-08-17 07:33:40 +02:00
David Baker
0f45b7e516
Merge pull request #1857 from matrix-org/revert-1851-fix/glare/18538
...
Revert "Fix glare related regressions"
2021-08-16 23:18:13 +01:00
David Baker
4c552cc350
Revert "Fix glare related regressions"
2021-08-16 23:06:57 +01:00
David Baker
6a87f54292
Merge pull request #1856 from matrix-org/dbkr/release_script_handle_no_signing_id
...
Fix release script to handle no signing ID
2021-08-16 15:32:09 +01:00
David Baker
bfb2c5aad0
Fix release script to handle no signing ID
...
We now use the file for stuff other than just the signing ID, so
the file may be present but with no signing ID: handle this case.
2021-08-16 14:38:42 +01:00
RiotRobot
db898e7bcf
Resetting package fields for development
2021-08-16 13:55:37 +01:00
RiotRobot
dbebbe3a19
Merge branch 'master' into develop
2021-08-16 13:55:37 +01:00
RiotRobot
10e8aff46a
v12.3.0
2021-08-16 13:52:36 +01:00
RiotRobot
81e2ea6a61
Prepare changelog for v12.3.0
2021-08-16 13:52:35 +01:00
David Baker
2594c59250
Merge pull request #1855 from matrix-org/dbkr/update_allchange
...
Update changelog generator
2021-08-16 13:31:28 +01:00
David Baker
b56a4ee6ec
Fix dates
2021-08-16 13:24:11 +01:00
David Baker
ab524ad3b4
Update changelog generator
2021-08-16 13:18:06 +01:00
David Baker
83bf80feec
Merge pull request #1854 from SimonBrandner/release/fix/glare/18538
...
[Release] Fix glare related regressions
2021-08-16 12:40:08 +01:00
Šimon Brandner
b9e5417218
Await handleCallEvent()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-16 13:30:22 +02:00
Šimon Brandner
082169a756
Fix glare
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-16 13:30:21 +02:00
Šimon Brandner
cdc87d371c
Reformat some code
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-16 13:30:21 +02:00
Šimon Brandner
f8ec3bc591
Remove weird method call
...
If we can get localUsermediaStream gotUserMediaForAnswer() has alredy been called before
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-16 13:30:21 +02:00
Šimon Brandner
85f4651e9b
Simplifie some code
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-16 13:30:20 +02:00
Šimon Brandner
da53241c48
Remove unnecessary logs
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-16 13:30:20 +02:00
Šimon Brandner
fa265296e8
Add a comment
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-16 13:30:19 +02:00
David Baker
ccf296ea92
Merge pull request #1851 from SimonBrandner/fix/glare/18538
...
Fix glare related regressions
2021-08-16 12:27:51 +01:00
Šimon Brandner
d65b48204b
Await handleCallEvent()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-16 13:14:04 +02:00
J. Ryan Stinnett
977720cee4
Merge pull request #1852 from matrix-org/jryans/comment-to-json
...
Clarify usages of event's toJSON
2021-08-16 10:30:50 +01:00
Christian Paul
3c7cdb1da8
Update src/crypto/EncryptionSetup.ts
2021-08-16 10:36:21 +02:00
Germain Souquet
dd80e744ff
Expose IMyDevice interface
2021-08-16 09:06:52 +01:00
J. Ryan Stinnett
0b12e37459
Clarify usages of event's toJSON
2021-08-16 09:04:14 +01:00
Šimon Brandner
51e815f0cb
Fix glare
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-15 13:03:18 +02:00
Šimon Brandner
f3856d569d
Reformat some code
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-15 13:03:08 +02:00
Šimon Brandner
e6d1909f0b
Remove weird method call
...
If we can get localUsermediaStream gotUserMediaForAnswer() has alredy been called before
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-15 13:02:39 +02:00
Šimon Brandner
408976a199
Simplifie some code
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-15 12:58:38 +02:00
Šimon Brandner
4da49d926b
Remove unnecessary logs
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-15 12:57:27 +02:00
Šimon Brandner
75750ed760
Add a comment
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-15 12:56:48 +02:00
Travis Ralston
2f74779bf1
Merge pull request #1772 from matrix-org/t3chguy/ts/12
...
Convert SearchResult, InteractiveAuth, PushProcessor and Scheduler to TS
2021-08-13 10:08:54 -06:00
Michael Telatynski
7b038393b1
Merge pull request #1792 from matrix-org/t3chguy/kill-groups
...
Deprecate groups APIs
2021-08-13 16:39:47 +01:00
Travis Ralston
768c0e7f77
Add method for including extra fields when uploading to a tree space
...
We ultimately need this to include things like `info` and other metadata in a specific environment.
2021-08-13 09:25:19 -06:00
Christian Paul
c6009b1056
Make delegateCryptoCallbacks parameter optional on EncryptionSetupBuilder
2021-08-13 16:04:47 +02:00
Christian Paul
2a280afa88
Make SSSSCryptoCallbacks.delegateCryptoCallbacks optional
2021-08-13 15:58:44 +02:00
Christian Paul
be980f4bc9
Update src/crypto/EncryptionSetup.ts
2021-08-13 15:38:22 +02:00
Dariusz Niemczyk
78118e9442
Merge pull request #1846 from matrix-org/jaller94-patch-1
...
SSSSCryptoCallbacks.getSecretStorageKey return Promise<null> if no key was found
2021-08-13 15:36:53 +02:00
Christian Paul
a2c10a7913
SSSSCryptoCallbacks.getSecretStorageKey: Test if delegateCryptoCallbacks has getSecretStorageKey
2021-08-13 15:28:01 +02:00
Christian Paul
7c4f7c9dad
SSSSCryptoCallbacks.getSecretStorageKey: Return null, if no key found
2021-08-13 15:23:47 +02:00
Christian Paul
62058e6d48
SSSSCryptoCallbacks.getSecretStorageKey may return Promise<void>
...
If no result is found, the function may reach the last line without `return` ever being called.
2021-08-13 15:15:20 +02:00
Dariusz Niemczyk
a2f514b544
Merge pull request #1834 from matrix-org/palid/fix/signaling-state-errors
...
Fix temporary call messages being handled without call
2021-08-13 14:17:30 +02:00
RiotRobot
67434bc5d4
v12.3.0-rc.2
2021-08-12 15:11:35 +01:00
RiotRobot
167183775e
Prepare changelog for v12.3.0-rc.2
2021-08-12 15:11:35 +01:00
David Baker
4ce6313126
Merge pull request #1840 from matrix-org/dbkr/allchange_npm
...
Use changelog generator from npm
2021-08-12 15:02:12 +01:00
David Baker
1298ed61b6
Merge pull request #1842 from matrix-org/dbkr/fix_types_build
...
Fix the types in shipped package
2021-08-12 14:33:01 +01:00
Michael Telatynski
14b424ee94
Merge branch 'develop' of github.com:matrix-org/matrix-js-sdk into t3chguy/fix/18089
2021-08-12 11:55:04 +01:00
David Baker
2bc1f2fe21
Apparently target matters when not emitting
2021-08-12 11:54:19 +01:00
David Baker
b392dbf6f8
Fix the types building
...
1829 added the spec files to 'src', presumably because they just
were't type checked otherwise, but this chaqnged the implicit rootDir
so the lib directory we shipped has types in src/ and spec/ which
meant lib/index.d.ts was at lib/src/index.d.ts.
Specify the rootDir on the build tsconfig to put it back in the
right place, and also try to make the base tsconfig never emit
to avoid it ever generating .d.ts files in silly places. Move all
the optoins related to emitting to -build since they aren't relevant
in the main one.
Is this a sensible way to do this? It doesn't feel terribly elegant.
Fixes https://github.com/vector-im/element-web/issues/18503
Regressed in https://github.com/matrix-org/matrix-js-sdk/pull/1829
2021-08-12 11:46:49 +01:00
Travis Ralston
696b3ef1ce
Merge pull request #1841 from matrix-org/travis/fsdk/fix-delete
...
Fix conditional on returning file tree spaces
2021-08-11 15:21:20 -06: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
David Baker
6170796ed8
Use changelog generator from npm
2021-08-11 21:50:13 +01:00
Michael Telatynski
d91d1cea34
Apply suggestions from code review
...
Co-authored-by: Travis Ralston <travisr@matrix.org >
2021-08-11 21:47:51 +01:00
Michael Telatynski
69ba32683c
Iterate PR based on feedback
2021-08-11 21:45:51 +01:00
Michael Telatynski
fc78e63ad1
Fix RoomHierarchy comments
2021-08-11 20:57:40 +01:00
Michael Telatynski
db212a555d
Update to latest version of MSC2946 API s/next_token/next_batch/
2021-08-11 20:49:23 +01:00
RiotRobot
429f32dacb
v12.3.0-rc.1
2021-08-11 15:41:40 +01:00
David Baker
ad036104e6
Changelog
2021-08-11 15:41:00 +01:00
Dariusz Niemczyk
4607f0177c
Fix invalid string quotes
2021-08-11 14:39:00 +02:00
Dariusz Niemczyk
d7dbaeba46
Update src/webrtc/callEventHandler.ts
...
Co-authored-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-11 14:38:20 +02:00
Dariusz Niemczyk
3e94db1837
Update src/webrtc/call.ts
...
Co-authored-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-11 14:38:13 +02:00
Dariusz Niemczyk
4fd77c2f05
Update src/webrtc/callEventHandler.ts
...
Co-authored-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-11 14:38:08 +02:00
Dariusz Niemczyk
9fe05e7d40
Fix temporary call messages being handled without call
...
In cases where a rogue client, or just a simple bug, sends a temporary
call message, like CallNegotiate the messages should just be discarded
if there's no actual p2p connection created.
2021-08-11 14:28:10 +02:00
Matthew Hodgson
946dcd0301
Merge pull request #1838 from matrix-org/matthew/fix-turn
...
fix TURN by fixing regression preventing multiple ICE candidates from sending.
2021-08-11 11:35:36 +01:00
Matthew Hodgson
97d718e850
tab->space
2021-08-11 11:31:40 +01:00
Matthew Hodgson
913b2d148c
clarify blank candidate comment
2021-08-11 11:30:42 +01:00
Matthew Hodgson
916f6a6126
fix TURN by fixing regression preventing multiple candidates from sending
...
In https://github.com/matrix-org/matrix-js-sdk/commit/eafecd36bc860e79d9aa280a7e60455dbd7c6f67#diff-df33fb6c18a9b5896cd500875824d6c10980d42c92b21cedac6d8f570a8d52b7L1639
the candidateSendTries reset was accidentally lost, meaning that we never send more than one m.call.candidates, breaking trickle ICE.
Also, we leak blank candidates out in m.call.candidates on Safari and FF, so fix that too.
2021-08-11 04:42:32 +01:00
David Baker
7dbee19456
Merge pull request #1837 from matrix-org/dbkr/fix_blank_membership_events
...
Fix blank profile in join events
2021-08-10 22:13:16 +01:00
David Baker
2375b00b52
more null checking
2021-08-10 22:09:01 +01:00
David Baker
13cdca028f
Fix blank profile in join events
...
This definitely needs explanation, but hopefully the comment is sufficient.
Type: defect
Fixes https://github.com/vector-im/element-web/issues/18321
Regressed in https://github.com/matrix-org/matrix-js-sdk/pull/1765
2021-08-10 21:59:40 +01:00
Germain Souquet
e5a67500e4
Stop checking for event type as it is sometimes encrypted
2021-08-10 16:21:59 +02:00
David Baker
264636c879
Merge pull request #1835 from matrix-org/travis/fsdk/get-perm
...
Add support for reading permissions from tree spaces
2021-08-10 11:08:51 +01:00
Michael Telatynski
9b50455049
Iterate PR, merge types with @types/PushRules
2021-08-10 11:03:05 +01:00
Michael Telatynski
a531446396
tidy a bit more
2021-08-10 10:46:13 +01:00
Michael Telatynski
f876c35283
Fix some bad conversion artifacts
2021-08-10 10:34:05 +01:00
Michael Telatynski
1bcec53c6b
delint
2021-08-10 10:22:40 +01:00
Michael Telatynski
0ad5ef4e9b
Merge branch 'develop' of github.com:matrix-org/matrix-js-sdk into t3chguy/ts/12
2021-08-10 10:21:13 +01:00
David Baker
94726aa1d5
Merge pull request #1832 from matrix-org/dbkr/preview_changelog
...
Add changelog preview action
2021-08-09 20:21:22 +01:00
Travis Ralston
8da2f91e22
Add support for reading permissions from tree spaces
...
This was originally thought to be able to be performed in another way, but unfortunately isn't as easy as originally predicted.
2021-08-09 08:43:46 -06:00
Dariusz Niemczyk
b03555a50b
Merge pull request #1833 from SimonBrandner/fix/screensharingc-crash
...
Fix error on turning off screensharing
2021-08-08 21:08:52 +02:00
Šimon Brandner
b61312feca
Fix screensharing crash
...
We have to first stop the track and only then delete the feed as stopping the tracks depends on the feed being defined
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-08 11:10:08 +02:00
David Baker
ea9459d330
Add changelog preview action
2021-08-06 23:05:00 +01:00
Travis Ralston
3edfe70a7b
Merge pull request #1831 from matrix-org/travis/fsdk/expose-get-file
...
Expose a getFileEvent() function off a MSC3089Branch
2021-08-06 09:15:24 -06:00
Travis Ralston
5482a19979
Expose a getFileEvent() function off a MSC3089Branch
2021-08-06 09:09:03 -06:00
Michael Telatynski
e1678aaf11
Merge pull request #1830 from matrix-org/t3chguy/js-docfix
...
Fix type documentation on MatrixClient::setRoomMutePushRule
2021-08-06 14:48:05 +01:00
Michael Telatynski
2bdb570f3c
Fix type documentation on MatrixClient::setRoomMutePushRule
2021-08-06 09:38:50 +01:00
Germain
3723b2da39
Merge pull request #1829 from matrix-org/gsouquet/jest-typescript
2021-08-05 11:00:40 +01:00
Germain Souquet
b63af00579
Exclude tests when building browserify package
2021-08-05 11:56:26 +02:00
David Baker
4ed6fbe5fe
Merge pull request #1820 from SimonBrandner/fix/hangup-reason/18219
...
Send `user_hangup` reason if the opponent supports it
2021-08-05 10:41:28 +01:00
Germain Souquet
026260502b
Fix linting issues in TypeScript test files
2021-08-05 11:37:27 +02:00
Germain Souquet
c45bc91389
Include all TypeScript @types listed in project dependency
...
Fixes vector-im/element-web#17743
The package @types/jest was not discovered because if types is specified, only packages listed will be included in the global scope.
2021-08-05 11:16:28 +02:00
Germain Souquet
18113900fe
Implementation of event threading
2021-08-04 17:28:08 +02:00
David Baker
69358f8372
Merge pull request #1825 from matrix-org/dbkr/codeowners
...
Add CODEOWNERS
2021-08-04 13:21:37 +01:00
David Baker
8800c6d2e0
Add CODEOWNERS
...
This should make github auto review request from the element-web team
2021-08-04 13:16:15 +01:00
David Baker
b63de6a902
Merge pull request #1823 from matrix-org/dbkr/argh_the_linting
...
Update eslint plugin & fix silly indenting
2021-08-04 10:03:20 +01:00
David Baker
b1cec7d6a5
Merge pull request #1824 from matrix-org/dbkr/allchange
...
Switch to new changelog generator
2021-08-04 10:03:08 +01:00
David Baker
08821e499c
Switch to new changelog generator
2021-08-03 17:51:42 +01:00
David Baker
3ca84cfc49
Update eslint plugin & fix silly indenting
...
As per matrix-org/eslint-plugin-matrix-org#15
this caused a bunch of silly indenting to creep in, so this fixes it
back to the previous style.
2021-08-03 17:15:25 +01:00
David Baker
be8ecce995
Merge pull request #1821 from SimonBrandner/task/cleanup
...
Clean-up some VoIP code
2021-08-03 13:18:47 +01:00
Šimon Brandner
775c3465bb
Rename so that VS Code spell checker shutsup
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-03 10:05:05 +02:00
Šimon Brandner
7484e3c032
Improve wording
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-03 09:48:23 +02:00
Šimon Brandner
b93e79274f
Move for better organization
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-03 09:45:27 +02:00
Šimon Brandner
fee6a96350
Rename for consistency
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-03 09:44:44 +02:00
Šimon Brandner
ac2c09108f
Improve styling a bit
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-03 09:42:20 +02:00
Šimon Brandner
5b13785115
Make a few things into one liners
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-03 09:40:04 +02:00
Šimon Brandner
dd3c53edac
Extract weSentTheEvent into a variable
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-03 09:37:41 +02:00
Šimon Brandner
904071ebe6
Extract type into a variable
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-03 09:33:40 +02:00
Šimon Brandner
7e0aeb425d
Move things we can into a switch statement
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-03 09:31:06 +02:00
Šimon Brandner
f4e985b5cc
Fix typos
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-02 21:38:05 +02:00
Šimon Brandner
03134832e9
Standardise screensharing casing
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-02 21:30:33 +02:00
Šimon Brandner
dbb0f66094
Remove unused mute state stuff
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-02 21:29:09 +02:00
Šimon Brandner
4631cd1fe3
Make localUsermediaStream into a getter
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-02 21:28:49 +02:00
Šimon Brandner
bc07ad5909
Make localScreenSharingStream into a getter
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-02 21:25:55 +02:00
Šimon Brandner
8b0c4a0efb
Merge remote-tracking branch 'upstream/develop' into task/cleanup
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-02 21:17:14 +02:00
Šimon Brandner
eac77a6695
Remove config as it wasn't used
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-02 21:15:36 +02:00
Šimon Brandner
aae8f1c706
screenSharingStream -> localScreenSharingStream
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-02 21:14:59 +02:00
Šimon Brandner
1e281f6838
localAVStream -> localUsermediaStream
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-02 21:02:09 +02:00
David Baker
aef89e4a26
Merge pull request #1812 from SimonBrandner/feature/muting
...
Support for MSC3291: Muting in VoIP calls
2021-08-02 17:20:42 +01:00
RiotRobot
8a1bc98d4e
Resetting package fields for development
2021-08-02 13:03:59 +01:00
RiotRobot
8b2d5959ec
Merge branch 'master' into develop
2021-08-02 13:03:59 +01:00
RiotRobot
4891446dc3
v12.2.0
2021-08-02 13:00:06 +01:00
David Baker
cace8f232f
Changelog for v12.2.0
2021-08-02 12:45:25 +01:00
Michael Telatynski
88b8b24629
Merge room hierarchy pages
2021-07-30 11:01:08 +01:00
Šimon Brandner
b15ba8c5e3
Send hangup reason if the opponent supports it
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-07-30 08:54:39 +02:00
Michael Telatynski
58c60d85e7
Refactor Space Hierarchy stuff in preparation for pagination
2021-07-29 17:35:17 +01:00
Hubert Chathi
529fe93ab1
Merge pull request #1819 from uhoreg/fix_aes_iv
...
Only clear bit 63 when we create the IV
2021-07-29 12:07:54 -04:00
Hubert Chathi
600438d02e
only clear bit 63 when we create the IV
...
If we got the IV from somewhere else, we should just use it as-is, rather than
trying to re-clear the bit.
2021-07-29 11:58:08 -04:00
Michael Telatynski
21a357c433
fix typo
2021-07-29 15:00:39 +01:00
Michael Telatynski
9c05077c26
Merge pull request #1816 from matrix-org/t3chguy/hidden-names
2021-07-29 12:55:40 +01:00
Michael Telatynski
d49d6936a5
Add support for /children API and fall back to /spaces API if M_UNRECOGNIZED
2021-07-29 12:16:34 +01:00
Šimon Brandner
e6696f78f4
Allow recieving unprefixed version of m.call.sdp_stream_metadata_changed
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-07-29 13:00:48 +02:00
Michael Telatynski
f2da3ba6ae
Apply hidden char check to rawDisplayName too
2021-07-29 11:00:30 +01:00
Šimon Brandner
db5de4c6e4
Merge remote-tracking branch 'upstream/develop' into feature/muting
2021-07-29 09:10:38 +02:00
Šimon Brandner
ca042b3647
Fix handling when remoteSDPStreamMetadata is null
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-07-28 20:12:21 +02:00
Šimon Brandner
87fd3521ea
Fix types
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-07-28 20:11:51 +02:00
Šimon Brandner
b3c66848e2
Handle missing params
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-07-28 19:06:24 +02:00
Šimon Brandner
606aa29381
Use recursivelyAssign
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-07-28 18:37:48 +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
ca7a457094
Add recursivelyAssign()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-07-28 17:56:51 +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
Šimon Brandner
b11a8459d8
Add a method for setting remoteSDPStreamMetadata
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-07-28 15:16:24 +02:00
Šimon Brandner
057eb0f2a5
Make mute state props mandetory
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-07-28 15:00:21 +02:00
Šimon Brandner
8de6c5aad1
Fix typo which caused all feeds to be muted by default
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-07-28 14:59:57 +02:00
Šimon Brandner
6fda2a0c57
Handle purpose changes
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-07-28 14:15:00 +02:00
David Baker
efeeba265f
Merge pull request #1813 from SimonBrandner/fix/call-view/18221
...
Handle DTMF support
2021-07-28 11:27:09 +01:00
Šimon Brandner
35ca7fdc48
Fix call transfer support
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-07-28 08:15:50 +02:00
Šimon Brandner
959e3f68a4
Handle DTMF support
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-07-27 17:51:13 +02:00
RiotRobot
f20b3211e6
v12.2.0-rc.1
2021-07-27 15:43:44 +01:00
RiotRobot
9b5302ebf2
Prepare changelog for v12.2.0-rc.1
2021-07-27 15:43:43 +01:00
Šimon Brandner
19f90f56be
Merge remote-tracking branch 'upstream/develop' into feature/muting
2021-07-27 16:40:07 +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
Michael Telatynski
c5e113d0ca
Merge pull request #1808 from matrix-org/t3chguy/ts/13
2021-07-27 15:36:21 +01:00
Šimon Brandner
1df90f8fc7
Basic implementation of MSC3291
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-07-27 14:31:13 +02:00
Šimon Brandner
8e6040ad6f
Give CallFeed a mute state
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-07-27 14:23:58 +02:00
Šimon Brandner
21f107d734
Add types for MSC3291
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-07-27 14:19:54 +02:00
Dariusz Niemczyk
e6d40f0c17
Merge pull request #1810 from matrix-org/fix/update-eslint-config
...
Update ESLint config
2021-07-27 09:51:58 +02:00
Dariusz Niemczyk
6b8bb46790
Update ESLint config
2021-07-26 16:37:47 +02:00
Michael Telatynski
05c3236e50
Merge pull request #1807 from bradtgmurray/improve-event-clear-event-state
2021-07-26 12:55:49 +01:00
Brad Murray
4f8c20ddae
Fix reattempting decryption check
2021-07-26 07:49:42 -04:00
Brad Murray
8aa283d994
Fix lint in tests
2021-07-25 11:45:09 -04:00
Brad Murray
e85b3b6a8d
Fix the tests and add a test
2021-07-25 11:41:08 -04:00
Brad Murray
04cd9b55f7
Merge remote-tracking branch 'upstream/develop' into improve-event-clear-event-state
2021-07-25 11:23:11 -04:00
Brad Murray
faf237e588
Respect the comment in getClearContent
2021-07-25 11:19:36 -04:00
Šimon Brandner
019abc7ad8
Merge remote-tracking branch 'upstream/develop' into fix/12652/screen-share
2021-07-25 08:13:23 +02:00
Michael Telatynski
db4b6fe2af
Update to beta better-docs to fix the gendocs issue
2021-07-24 12:10:45 +01:00
Michael Telatynski
c340e6f1ba
delint and fix tests
2021-07-24 12:01:23 +01:00
Michael Telatynski
f227a307c1
Fix some confused signatures/types
2021-07-24 11:40:30 +01:00
Michael Telatynski
011a2acfd2
Convert crypto/store/* to Typescript
2021-07-24 11:35:30 +01:00
Michael Telatynski
c2b5b14d26
Merge branch 'develop' of github.com:matrix-org/matrix-js-sdk into t3chguy/ts/12
...
Conflicts:
src/client.ts
src/interactive-auth.ts
src/models/search-result.ts
2021-07-23 23:46:15 +01:00
Brad Murray
ad79a64f1c
Address review feedback
2021-07-23 16:25:39 -04:00
Brad Murray
91f5df1e48
Fix incorrect indentation
2021-07-23 16:16:39 -04:00
Brad Murray
980d6fc2ae
Differentiate between an undefined clearEvent and a falsey property of the clearEvent
2021-07-23 16:13:46 -04:00
Brad Murray
5aa60b8056
Clean up Event.clearEvent handling
2021-07-23 15:56:24 -04:00
Michael Telatynski
dc154a00a8
Merge pull request #1806 from matrix-org/t3chguy/eslint1
2021-07-23 16:24:58 +01:00
Michael Telatynski
a087acf65d
Merge branch 'develop' of github.com:matrix-org/matrix-js-sdk into t3chguy/eslint1
2021-07-23 16:08:31 +01:00
Michael Telatynski
05d0755b6a
Update matrix-org-eslint-plugin and tighten max warning limit
...
Whilst it is down, make the most of it!
2021-07-23 16:07:49 +01:00
Michael Telatynski
cd86aa7d9e
Merge pull request #1745 from matrix-org/t3chguy/fix/17686
2021-07-23 09:09:15 +01:00
Šimon Brandner
fcbbcc0398
Always return true for voice calls
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-07-22 09:24:59 +02:00
Travis Ralston
2bd99b5cb0
Merge pull request #1771 from matrix-org/j94/functional-members
...
Functional members
2021-07-21 18:25:14 -06:00
David Baker
82d248cb8e
Merge pull request #1802 from matrix-org/dbkr/yarn_upgrade_210721
...
yarn upgrade
2021-07-21 16:58:49 +01:00
David Baker
ce2803ebaa
yarn upgrade
2021-07-21 15:37:19 +01:00
Germain
e85038e888
Merge pull request #1801 from matrix-org/gsouquet/localecompare-perf
...
Improve calculateRoomName performances by using Intl.Collator
2021-07-21 15:28:22 +01:00
Šimon Brandner
ceafb1c5d0
Merge remote-tracking branch 'upstream/develop' into fix/12652/screen-share
2021-07-21 15:58:46 +02:00
Michael Telatynski
a87858840b
Merge pull request #1798 from matrix-org/t3chguy/eslint
2021-07-21 14:53:12 +01:00
Germain Souquet
f708c47385
Improve calculateRoomName performances by using Intl.Collator
2021-07-21 14:18:22 +02:00
Michael Telatynski
9eb918f701
Merge branch 'develop' of github.com:matrix-org/matrix-js-sdk into t3chguy/fix/17686
2021-07-21 10:56:21 +01:00
Christian Paul
b4bffd2700
Merge remote-tracking branch 'origin/develop' into j94/functional-members
2021-07-21 11:23:22 +02:00
Šimon Brandner
80d7c88b40
Merge remote-tracking branch 'upstream/develop' into fix/12652/screen-share
2021-07-20 15:47:36 +02:00
Travis Ralston
fb315ac75b
Merge pull request #1799 from matrix-org/travis/error1
...
Actually print IndexedDB command error if there is one
2021-07-20 07:38:43 -06:00
Šimon Brandner
bee840ce16
Merge remote-tracking branch 'upstream/develop' into fix/12652/screen-share
2021-07-20 13:30:01 +02:00
Christian Paul
afa67688f8
Add test for service member who is not a room member
2021-07-20 12:51:08 +02:00
Michael Telatynski
0c06e47782
Update eslint-plugin-matrix-org
2021-07-20 09:15:26 +01:00
Travis Ralston
ea646c673b
Actually print idb command error if there is one
2021-07-19 23:31:39 -06:00
Michael Telatynski
5cf6684129
Conform to new typescript eslint rules
2021-07-19 22:47:32 +01:00
Christian Paul
cb2b9619ab
Replace .indexOf() !== -1 with .includes() for readability
2021-07-19 18:22:29 +02:00
Christian Paul
b8c2a57829
Add test with multiple service_members
2021-07-19 18:17:39 +02:00
Christian Paul
718a22f574
Merge branch 'j94/functional-members' of github.com:matrix-org/matrix-js-sdk into j94/functional-members
2021-07-19 18:01:05 +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
Michael Telatynski
f686d70157
Merge branch 'develop' of github.com:matrix-org/matrix-js-sdk into t3chguy/fix/17686
2021-07-19 16:47:39 +01:00
RiotRobot
b936b4a2ce
Resetting package fields for development
2021-07-19 15:52:47 +01:00
RiotRobot
026839d7e7
Merge branch 'master' into develop
2021-07-19 15:52:46 +01:00
RiotRobot
830a4a741e
v12.1.0
2021-07-19 15:49:55 +01:00
RiotRobot
a3d9ed19a4
Prepare changelog for v12.1.0
2021-07-19 15:49:54 +01:00
David Baker
8f9f5fd5b0
Merge pull request #1796 from matrix-org/dbkr/upgrade_eslint_plugin_matrix_org
...
Update eslint-plugin-matrix-org
2021-07-19 15:33:45 +01:00
David Baker
805267f97f
Update eslint-plugin-matrix-org
2021-07-19 15:23:20 +01:00
Christian Paul
4a1cd159a4
Update event.ts
2021-07-19 11:53:43 +02:00
Christian Paul
7129c7c7af
Update src/models/room.ts
...
Co-authored-by: Travis Ralston <travisr@matrix.org >
2021-07-19 10:56:15 +02:00
Travis Ralston
ecc9fda28b
Merge pull request #1778 from matrix-org/travis/notifications-2
...
Add minimal types for "notification settings" UI
2021-07-16 23:53:13 -06:00
Travis Ralston
7f7c3cbea5
Fix exclusion types
2021-07-16 23:48:41 -06:00
Travis Ralston
fc8cd39d1a
Optionalize opts
2021-07-16 16:32:49 -06:00
Travis Ralston
589c66bb12
Re-appease linter
2021-07-16 16:30:06 -06:00
Travis Ralston
16fe5a91d5
Consolidate types
2021-07-16 16:27:50 -06:00
Travis Ralston
b57b7a65ee
Merge branch 'develop' into travis/notifications-2
2021-07-16 16:26:05 -06:00
Šimon Brandner
019e93e76c
Merge remote-tracking branch 'upstream/develop' into fix/12652/screen-share
2021-07-16 21:38:10 +02:00
Michael Telatynski
69415ba2c3
Merge pull request #1791 from matrix-org/t3chguy/querystring
2021-07-16 19:57:22 +01:00
Šimon Brandner
1607ad2111
Merge remote-tracking branch 'upstream/develop' into fix/12652/screen-share
2021-07-16 20:11:39 +02:00
Michael Telatynski
f1a0c46a29
Deprecate groups APIs
2021-07-16 17:45:07 +01:00
Michael Telatynski
9b81b805be
create utility to decode qs into objects
2021-07-16 13:07:01 +01:00
Michael Telatynski
8379bb818e
Switch from url to URL constructor
2021-07-16 13:01:27 +01:00
Michael Telatynski
c62f2a0965
Merge pull request #1789 from matrix-org/t3chguy/fix/18008
2021-07-16 11:06:56 +01:00
Michael Telatynski
d383e71aca
Switch callEventHandler from listening on event to Room.timeline
...
so that it doesn't end up processing ephemerals, account data, remote echoes, etc etc
2021-07-15 17:44:17 +01:00
David Baker
dbe93f598a
Merge pull request #1787 from matrix-org/dbkr/new_changelogs
...
Contributing guidelines for new changelog generation
2021-07-15 14:12:20 +01:00
David Baker
2bc5f7132d
Merge remote-tracking branch 'origin/develop' into dbkr/new_changelogs
2021-07-15 14:07:51 +01:00
David Baker
b17f339011
Merge pull request #1786 from matrix-org/dbkr/fix_contributing_link
...
Fix link to CONTRIBUTING.md
2021-07-15 14:06:20 +01:00
Michael Telatynski
e2b04d543a
Merge branch 'develop' of github.com:matrix-org/matrix-js-sdk into t3chguy/fix/17686
...
Conflicts:
src/@types/partials.ts
src/client.ts
2021-07-15 10:03:05 +01:00
Michael Telatynski
0601f98265
Merge pull request #1788 from SimonBrandner/feature/hidden-rrs
...
Use an unstable prefix for MSC2885: Hidden read receipts
2021-07-15 08:46:54 +01:00
Šimon Brandner
bae5650e7a
Fix MSC number
...
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com >
2021-07-15 09:41:40 +02:00
Šimon Brandner
ff40b4dc4a
Fix MSC number
...
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com >
2021-07-15 09:41:35 +02:00
Germain
6098f74d8f
Merge pull request #1782 from psrpinto/fix/naming
2021-07-15 08:07:05 +01:00
David Baker
45c153321c
Use X-Breaking-Change
...
Apparently we already have this label in react SDK (for some reason)
so let's use it. Plus, it's clearer that it's for changes rather than
issues that cause things to break.
2021-07-14 22:46:22 +01:00
David Baker
19aedebff1
Update other label mentions
2021-07-14 22:16:00 +01:00
David Baker
5392f616b4
Use existing issues labels / scheme
...
Co-authored-by: J. Ryan Stinnett <jryans@gmail.com >
2021-07-14 22:15:18 +01:00
David Baker
c4ccb9d493
Use a real-life example which should hopefully be clearer
2021-07-14 22:00:42 +01:00
David Baker
b0726b5008
On brand ourself
...
Co-authored-by: J. Ryan Stinnett <jryans@gmail.com >
2021-07-14 21:57:48 +01:00
David Baker
9c221419ef
On-brand
...
Co-authored-by: J. Ryan Stinnett <jryans@gmail.com >
2021-07-14 21:57:29 +01:00
David Baker
fddf0c47fb
Fix formatting
...
Co-authored-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-07-14 21:57:04 +01:00
David Baker
b17862e212
s/tag/label/
...
Also make breaking change notation clearer.
2021-07-14 19:55:58 +01:00
David Baker
e133898554
Fix link to CONTRIBUTING.md
2021-07-14 19:48:47 +01:00
David Baker
ee5a0e7edf
Internal PRs shouldn't have changelog entries by default
2021-07-14 19:47:46 +01:00
David Baker
b538c06fcb
Update contributing guidelines to for new changelog stuff
2021-07-14 19:45:42 +01:00
David Baker
49cbaa579f
Merge pull request #1785 from matrix-org/dbkr/contributing-to-md
...
Convert CONTRIBUTING to markdown
2021-07-14 19:05:26 +01:00
David Baker
20bd9b525b
Convert CONTRIBUTING to markdown
...
Because everything else is
2021-07-14 19:02:03 +01:00
Michael Telatynski
3038fc523c
Merge pull request #1780 from matrix-org/t3chguy/ts/c3
...
Use webpack worker-loader instead of homegrown hack
2021-07-14 18:25:21 +01:00
Michael Telatynski
52a85e3f82
Merge branch 'develop' of github.com:matrix-org/matrix-js-sdk into t3chguy/ts/c3
2021-07-14 17:52:42 +01:00
Michael Telatynski
3df1c4b507
Merge pull request #1779 from matrix-org/t3chguy/ts/c2
2021-07-14 17:44:35 +01:00
Travis Ralston
6ada02e245
Merge pull request #1784 from matrix-org/travis/widgets/fix-enc
...
Expose MatrixEvent's internal clearEvent as a function
2021-07-14 10:33:45 -06:00
Šimon Brandner
9184a0d902
Use MSC2885 unstable prefix
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-07-14 18:27:38 +02:00
Travis Ralston
4bc4e1b76f
remove useless code
2021-07-14 10:22:36 -06:00
Michael Telatynski
cb192d3c74
Merge pull request #1777 from matrix-org/t3chguy/ts/c1
2021-07-14 17:19:03 +01:00
Travis Ralston
11dabf9a68
rename
2021-07-14 10:18:12 -06:00
Travis Ralston
ea4dfd003f
It's not a partial anymore
2021-07-14 10:09:23 -06:00
Travis Ralston
326b14402f
Return a properly shaped event
2021-07-14 10:07:43 -06:00
RiotRobot
d71ca8a9e0
v12.1.0-rc.1
2021-07-14 16:16:04 +01:00
RiotRobot
45259f0773
Prepare changelog for v12.1.0-rc.1
2021-07-14 16:16:03 +01:00
Travis Ralston
83337eee57
Expose MatrixEvent's internal clearEvent as a function
2021-07-13 23:09:37 -06:00
Michael Telatynski
aed861036b
Merge pull request #1783 from SimonBrandner/ignore-vscode
2021-07-13 19:19:58 +01:00
Šimon Brandner
3ff05c0947
Ignore vscode
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-07-13 20:11:58 +02:00
Paulo Pinto
5b2a53a2b4
Undo changes to the CHANGELOG
...
Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com >
2021-07-13 18:30:57 +01:00
Paulo Pinto
3f6aee1443
Use correct term for identity server
...
Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com >
2021-07-13 16:27:40 +01:00
Paulo Pinto
dba70d4ce2
Standardise casing of integration manager
...
Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com >
2021-07-13 16:27:40 +01:00
Paulo Pinto
ab3dfd48ae
Standardise spelling of identity server
...
Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com >
2021-07-13 16:27:40 +01:00
Paulo Pinto
ab59e9134b
Standardise casing of identity server
...
Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com >
2021-07-13 16:27:40 +01:00
Paulo Pinto
56921f0961
Standardise spelling and casing of homeserver
...
Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com >
2021-07-13 16:27:40 +01:00
Michael Telatynski
f9005c33e9
Fix casing of IIndexedDBBackend
2021-07-13 11:29:32 +01:00
Michael Telatynski
b7c5b36556
Merge pull request #1781 from matrix-org/t3chguy/dt1
...
Make `Crypto::inRoomVerificationRequests` public
2021-07-13 11:12:23 +01:00
Michael Telatynski
33deef9f2c
Rework devtools and get rid of flippy tgl button
2021-07-13 10:33:33 +01:00
Travis Ralston
d5c3cb1b7f
More minimal types for pushers & push rules
2021-07-12 21:50:27 -06:00
Michael Telatynski
19d8f2bbac
Use webpack worker-loader to load the IndexedDB worker instead of homegrown hack
2021-07-12 18:43:21 +01:00
Michael Telatynski
1aa103d8d2
Fix spurious argument appearing on the interface and TODO
2021-07-12 18:41:26 +01:00
Michael Telatynski
75f630e45d
Add missing interface
2021-07-12 18:39:29 +01:00
Michael Telatynski
1defde0f5e
Convert IndexedDB store & worker to Typescript
2021-07-12 18:36:47 +01:00
Michael Telatynski
e38595e735
remove unused import
2021-07-12 09:14:44 +01:00
Michael Telatynski
c0e16ac98c
Update some more
2021-07-12 09:10:27 +01:00
Michael Telatynski
b33429317c
Fix setTimeout/setInterval typing
2021-07-12 09:02:47 +01:00
Michael Telatynski
e3f7c848d7
iterate types based on PR review
2021-07-12 08:44:34 +01:00
Travis Ralston
5f2ed4450e
--
2021-07-11 21:04:10 -06:00
Travis Ralston
11e25ea9a2
Appease linter
2021-07-11 21:02:33 -06:00
Travis Ralston
fb7184e6fb
Reorganize types a bit
2021-07-11 20:56:52 -06:00
Travis Ralston
3c77a8772a
Add minimal types for "notification settings" UI
...
For https://github.com/vector-im/element-web/issues/17782
2021-07-11 20:54:51 -06:00
Travis Ralston
5ce787c6ea
Merge pull request #1765 from SimonBrandner/fix/add-event-meta-for-filtered/5692
...
Call `setEventMetadata()` for filtered `timelineSet`s
2021-07-11 02:51:51 -06:00
Šimon Brandner
67189ad323
Use an enum
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-07-11 10:47:42 +02:00
Michael Telatynski
3bff5430f6
delint
2021-07-10 15:55:19 +01:00
Michael Telatynski
17efcad6fe
Improve and consolidate typing
2021-07-10 15:50:40 +01:00
Christian Paul
d7e6cee19c
Update room.ts
2021-07-10 03:44:03 +02:00
Christian Paul
116085e927
Fix linter error
2021-07-10 03:08:51 +02:00
Christian Paul
96e6e7b1e8
Update event.ts
2021-07-09 16:44:39 +02:00
Hubert Chathi
061199ec3c
Merge pull request #1775 from uhoreg/symmetric_backup
...
Symmetric backup
2021-07-09 10:31:43 -04:00
David Baker
2d67a35af5
Merge pull request #1776 from matrix-org/dbkr/rescue_lost_megolm_key
...
Attempt to fix megolm key not being in SSSS
2021-07-09 14:30:55 +01:00
Michael Telatynski
4cb6ad9e70
Merge branch 'develop' of github.com:matrix-org/matrix-js-sdk into t3chguy/fix/17686
2021-07-09 08:53:24 +01:00
Hubert Chathi
d639a29501
more type improvements
2021-07-08 18:47:22 -04:00
Hubert Chathi
ac02f30dc8
improve types
2021-07-08 18:10:37 -04:00
David Baker
05a20ab56f
Fix up keys even if key backup isn't enabled
...
Mostly because that's what the test tests, so let's keep that
behaviour the same.
2021-07-08 21:30:50 +01:00
David Baker
964aa6d94a
Update comment
2021-07-08 21:20:34 +01:00
David Baker
1a17b138ce
Attempt to fix megolm key not being in SSSS
...
If the account has both a key backup and SSSS enabled but the key
backup key isn't stored in SSSS, try to save it there by getting
it from either the cache or the user (if perhaps it's the same as
their security passphrase but lost a passthrough entry).
Fixes https://github.com/vector-im/element-web/issues/17886
2021-07-08 21:12:45 +01:00
Hubert Chathi
2e27e247f3
Merge branch 'develop' into symmetric_backup
2021-07-08 15:16:07 -04:00
Hubert Chathi
ef8e4d6d35
fix the tests that got broken by the last commit
2021-07-08 11:19:46 -04:00
Hubert Chathi
8bee38367a
use the MSC number
2021-07-08 10:14:53 -04:00
Šimon Brandner
0318c65847
Merge remote-tracking branch 'upstream/develop' into fix/12652/screen-share
2021-07-08 13:22:34 +02:00
David Baker
ab5b69bbdb
Merge pull request #1774 from matrix-org/dbkr/tsify_secretstorage
...
Convert SecretStorage to TypeScript
2021-07-08 09:18:23 +01:00
Hubert Chathi
9f4c5af665
fix test
2021-07-07 20:19:23 -04:00
Hubert Chathi
e275301e8b
lint
2021-07-07 19:50:16 -04:00
Hubert Chathi
c8a7820cb3
fix types
2021-07-07 19:46:01 -04:00
Hubert Chathi
17dc1bda19
Merge branch 'develop' into symmetric_backup
2021-07-07 19:19:56 -04:00
David Baker
8d9de37099
type for reason
2021-07-07 21:21:22 +01:00
David Baker
29b403da45
visibility
2021-07-07 21:20:48 +01:00
David Baker
1fd1ba2ada
de-underscore
2021-07-07 21:19:51 +01:00
David Baker
5fbce3b928
Consistent values between various account data interfaces
2021-07-07 21:18:14 +01:00
Hubert Chathi
9019bce843
mark session as untrusted when the session data has the untrusted flag
2021-07-07 16:16:07 -04:00
David Baker
fd2d106f2a
extract SecretStorageKeyObject
2021-07-07 21:14:34 +01:00
David Baker
64a1c83acc
param names
2021-07-07 21:11:11 +01:00
David Baker
8cc250e19d
param names
2021-07-07 21:10:51 +01:00
David Baker
dbd737c87d
param names & comment any
2021-07-07 21:10:13 +01:00
David Baker
33398e78cd
Fix duplicate inlined / explicit members
2021-07-07 21:05:45 +01:00
David Baker
79c6d0180c
remove TODO
2021-07-07 21:04:07 +01:00
David Baker
e7a198dc0c
Line breaks
...
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com >
2021-07-07 21:00:02 +01:00
David Baker
ef08c35c6f
Line break
...
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com >
2021-07-07 20:59:32 +01:00
David Baker
41b816538e
Line break
...
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com >
2021-07-07 20:58:47 +01:00
David Baker
87d9fe24f5
Shorthand
...
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com >
2021-07-07 20:58:08 +01:00
David Baker
d11c95a23f
Add type
...
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com >
2021-07-07 20:57:40 +01:00
David Baker
3c9b846116
Shorthand
...
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com >
2021-07-07 20:56:55 +01:00
David Baker
c701e2e6d3
Inline members in ctor
...
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com >
2021-07-07 20:55:23 +01:00
David Baker
11b490c77f
Line breaks
...
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com >
2021-07-07 20:54:48 +01:00
David Baker
0544ab2617
Add return type
...
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com >
2021-07-07 20:52:07 +01:00
David Baker
5c6d3724b0
Move some interfaces around
2021-07-07 20:21:44 +01:00
David Baker
c34d4e777f
Convert SecretStorage to TypeScript
2021-07-07 19:37:22 +01:00
Michael Telatynski
588d783a55
Merge pull request #1721 from matrix-org/t3chguy/fix/17494
2021-07-07 18:10:35 +01:00
Michael Telatynski
79f74fdff4
Improve return type for getUrlPreview
2021-07-07 17:54:46 +01:00
Germain
6f5dbb782e
Merge pull request #1773 from matrix-org/gsouquet/ci-pure-lockfile
...
Do not generate a lockfile when running in CI
2021-07-07 15:23:25 +01:00
Germain Souquet
f0ae9b0100
Do not generate a lockfile when running in CI
2021-07-07 16:11:14 +02:00
Michael Telatynski
fd260a023c
Merge branch 'develop' of github.com:matrix-org/matrix-js-sdk into t3chguy/fix/17494
...
Conflicts:
src/client.js
2021-07-07 14:03:12 +01:00
Michael Telatynski
e775bcac3c
Convert SearchResult, InteractiveAuth, PushProcessor and Scheduler to Typescript
2021-07-07 11:08:54 +01:00
Šimon Brandner
641c852ee2
Merge remote-tracking branch 'upstream/develop' into fix/12652/screen-share
2021-07-07 10:43:23 +02:00
Christian Paul
ab679c2216
Update src/@types/event.ts
2021-07-07 00:39:26 +02:00
Christian Paul
96420a75ab
room.ts: Use UNSTABLE_ELEMENT_FUNCTIONAL_USERS
2021-07-06 19:35:56 +02:00
Christian Paul
c4263692f0
Update event.ts
2021-07-06 19:34:44 +02:00
Christian Paul
0074b71cbf
Fix object-curly-spacing linting errors
2021-07-06 19:10:25 +02:00
Christian Paul
d219c2f462
Fix mistakes
2021-07-06 19:07:20 +02:00
Christian Paul
4700dc0375
Remove trailing spaces
2021-07-06 18:59:02 +02:00
Christian Paul
a248bbc46b
Update src/models/room.ts
...
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com >
2021-07-06 18:58:07 +02:00
Christian Paul
d60affc1b8
room.calculateRoomName: Exclude service members
2021-07-06 18:35:34 +02:00
Christian Paul
8c0f5b4e31
Update event.ts: Add io.element.functional_members
2021-07-06 16:48:57 +02:00
Michael Telatynski
a617f6cc55
Merge branch 'develop' of github.com:matrix-org/matrix-js-sdk into t3chguy/fix/17686
2021-07-06 10:12:18 +01:00
Michael Telatynski
9e66026bdc
Export MSC3244 type
2021-07-06 10:08:40 +01:00
RiotRobot
dc90115a1b
Resetting package fields for development
2021-07-05 14:57:15 +01:00
RiotRobot
13b250d291
Merge branch 'master' into develop
2021-07-05 14:57:15 +01:00
RiotRobot
834ab22923
v12.0.1
2021-07-05 14:54:21 +01:00
RiotRobot
17be68a39d
Prepare changelog for v12.0.1
2021-07-05 14:54:21 +01:00
Michael Telatynski
48ee03e278
Merge branch 'develop' of github.com:matrix-org/matrix-js-sdk into t3chguy/fix/17686
2021-07-05 13:45:56 +01:00
David Baker
5b86d8b837
Merge pull request #1766 from matrix-org/dbkr/secretrequest_nopromise
...
Tidy up secret requesting code
2021-07-02 14:50:50 +01:00
David Baker
521fce59ea
Tidy up secret requesting code
...
Use a plain async function rather than a promise, so we don't
have to squelch the lint warning.
2021-07-02 14:46:30 +01:00
Michael Telatynski
bbe1ba7328
Improve typing
2021-07-02 14:38:17 +01:00
Michael Telatynski
ce7f20219f
Merge pull request #1763 from matrix-org/t3chguy/ts/11
...
Convert Sync and SyncAccumulator to Typescript
2021-07-02 11:03:27 +01:00
Šimon Brandner
aad33bd1b7
Formatting
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-07-02 11:04:54 +02:00
Šimon Brandner
9923c7e577
Merge remote-tracking branch 'upstream/develop' into fix/add-event-meta-for-filtered/5692
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-07-02 11:03:54 +02:00
Michael Telatynski
ae870b1cc1
Merge pull request #1762 from matrix-org/t3chguy/ts/10
2021-07-02 09:51:56 +01:00
Michael Telatynski
e3cb199540
Merge branch 'develop' of github.com:matrix-org/matrix-js-sdk into t3chguy/fix/17686
2021-07-02 09:06:15 +01:00
Šimon Brandner
d9d19fdc63
delint
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-07-02 09:51:26 +02:00
Šimon Brandner
f506882bf8
Call setEventMetadata() for filtered timelineSets
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-07-02 09:47:47 +02:00
David Baker
e782183a49
Merge pull request #1764 from matrix-org/dbkr/ts_semicolons
...
Comply with new member-delimiter-style rule
2021-07-01 23:54:07 +01:00
David Baker
6699c4d8af
Revert e0012d9b81
...
Accidentally comitted to develop
2021-07-01 23:49:13 +01:00
David Baker
f027cbf170
Bump eslint plugin version
...
Also yarn has decided that other line is going away too
2021-07-01 23:48:56 +01:00
David Baker
e0012d9b81
Bump eslint plugin version
...
Also yarn has decided that other line is going away too
2021-07-01 23:46:13 +01:00
David Baker
b2ad957d29
Comply with new member-delimiter-style rule
...
Just `eslint --fix` with rule from
https://github.com/matrix-org/eslint-plugin-matrix-org/pull/9 in place
2021-07-01 23:28:18 +01:00
Michael Telatynski
cab334ed73
Convert Sync and SyncAccumulator to Typescript
2021-07-01 22:47:50 +01:00
Michael Telatynski
a99c1e96d6
fix field accesses in tests and default params
2021-07-01 21:05:58 +01:00
Michael Telatynski
261ac8b2d6
Merge branch 'develop' of github.com:matrix-org/matrix-js-sdk into t3chguy/fix/17686
2021-07-01 20:49:20 +01:00
Michael Telatynski
399237e781
use better types
2021-07-01 10:01:49 +01:00
Michael Telatynski
4b29f02f1c
Convert EventTimeline, EventTimelineSet and TimelineWindow to TS
2021-07-01 09:53:55 +01:00
Hubert Chathi
558da5528b
fix validity checks for backup info
2021-06-30 21:53:11 -04:00
J. Ryan Stinnett
e3a00c2cb4
Merge pull request #1754 from aaronraimist/string-pl
...
Do not honor string power levels
2021-06-30 16:39:44 +01:00
Michael Telatynski
12deaa80a6
Merge pull request #1508 from matrix-org/t3chguy/ts/4
2021-06-29 22:24:18 +01:00
Germain
a6507768bc
Merge pull request #1760 from matrix-org/gsouquet/filepanel-typescript
...
Make filterId read/write and optional
2021-06-29 15:15:10 +01:00
RiotRobot
8f19ab066c
v12.0.1-rc.1
2021-06-29 14:30:59 +01:00
RiotRobot
17decea576
Prepare changelog for v12.0.1-rc.1
2021-06-29 14:30:58 +01:00
Germain Souquet
a2442add5b
Make filterId read/write and optional
2021-06-29 13:46:42 +01:00
Michael Telatynski
7dbe95fa92
Merge branch 'develop' of github.com:matrix-org/matrix-js-sdk into t3chguy/fix/17686
...
Conflicts:
src/@types/partials.ts
src/client.ts
2021-06-29 12:28:38 +01:00
Michael Telatynski
3339a2874d
Merge pull request #1759 from matrix-org/t3chguy/fix/17753
...
Fix broken /messages filtering due to internal field changes in FilterComponent
2021-06-29 11:47:23 +01:00
Michael Telatynski
393047dec5
Fix broken /messages filtering due to internal field changes in FilterComponent
2021-06-29 11:34:59 +01:00
Aaron Raimist
55fb3d4e8e
Also prevent sending unless safe integer
...
Synapse enforces this but I guess it doesn't hurt to also check here
Signed-off-by: Aaron Raimist <aaron@raim.ist >
2021-06-28 22:32:27 -05:00
Aaron Raimist
047180edc9
Merge branch 'develop' into string-pl
2021-06-28 22:17:55 -05:00
Michael Telatynski
1b0a388eb3
delint import
2021-06-25 10:27:55 +01:00
Michael Telatynski
d50e559f97
MegolmDecryption::deviceId is not a valid field, sub it out for undefined as it isn't used meaningfully anyhow
2021-06-25 10:21:28 +01:00
Michael Telatynski
835aafcb17
Type the rest of algorithms because tests are unhappy otherwise
2021-06-25 10:18:46 +01:00
Michael Telatynski
48ad9ba3d7
Some more types
2021-06-24 21:48:55 +01:00
Michael Telatynski
3675e95970
fix the upset CI
2021-06-24 21:22:56 +01:00
Michael Telatynski
1ca13f4ce9
delint
2021-06-24 19:28:04 +01:00
Michael Telatynski
40aa6ba96a
Even moar typescriptification
2021-06-24 19:19:41 +01:00
Michael Telatynski
b4dc1e1555
Moar typescriptification
2021-06-24 17:41:52 +01:00
Michael Telatynski
3effeb7dc4
Merge branch 'develop' of github.com:matrix-org/matrix-js-sdk into t3chguy/ts/4
...
Conflicts:
package.json
src/@types/global.d.ts
src/crypto/key_passphrase.ts
src/crypto/olmlib.ts
src/utils.ts
2021-06-24 17:04:45 +01:00
Michael Telatynski
8c11839e4d
Merge pull request #1749 from matrix-org/t3chguy/ts/5.1
2021-06-24 15:23:55 +01:00
Michael Telatynski
41817995bd
Merge pull request #1739 from matrix-org/t3chguy/fix/15051
2021-06-24 11:20:10 +01:00
Hubert Chathi
8c9799d64c
add tests and some fixes
2021-06-23 18:20:00 -04:00
Michael Telatynski
3a5e4ffa91
Fix yet more underscored accesses
2021-06-23 15:54:48 +01:00
Michael Telatynski
02afcc7d4b
delint
2021-06-23 15:48:21 +01:00
Michael Telatynski
e9007429dd
fix more underscored accesses
2021-06-23 15:02:01 +01:00
Michael Telatynski
664d920dd1
Fix issues identified by Typescriptification
2021-06-23 14:51:40 +01:00
Michael Telatynski
5a8299f1a5
Convert more of js-sdk crypto and fix underscored field accesses
2021-06-23 14:47:25 +01:00
Michael Telatynski
6017fead19
Fix imports
2021-06-23 13:33:56 +01:00
Michael Telatynski
69050ed338
Fix import cycle
2021-06-23 13:12:26 +01:00
Michael Telatynski
2664848545
Merge branch 'develop' of github.com:matrix-org/matrix-js-sdk into t3chguy/ts/5.1
2021-06-23 13:05:34 +01:00
Aaron Raimist
b18f0ff738
Do not honor string power levels
...
Signed-off-by: Aaron Raimist <aaron@raim.ist >
2021-06-22 22:34:34 -05:00
Michael Telatynski
1171c33f7a
Merge pull request #1753 from matrix-org/t3chguy/ts/8
2021-06-22 22:04:22 +01:00
Michael Telatynski
6deb2bc7a9
Merge branch 'develop' of github.com:matrix-org/matrix-js-sdk into t3chguy/fix/15051
...
Conflicts:
src/models/MSC3089TreeSpace.ts
2021-06-22 22:03:44 +01:00
Michael Telatynski
7bda13aba6
Fix types of MatrixEvent sender & target
2021-06-22 20:37:50 +01:00
Travis Ralston
75719c3e0f
Merge pull request #1744 from matrix-org/travis/keyshare-file-trees
...
Add keysharing on invites to File Tree Spaces
2021-06-22 10:48:57 -06:00
Michael Telatynski
2fb033b5ba
Merge pull request #1746 from matrix-org/t3chguy/ts/5
2021-06-22 17:41:26 +01:00
Michael Telatynski
9f1db7a707
Merge pull request #1752 from matrix-org/t3chguy/ts/7
...
Improve type of IContent msgtype
2021-06-22 17:36:53 +01:00
Michael Telatynski
a93de99d42
Improve type of IContent msgtype
2021-06-22 17:18:54 +01:00
Michael Telatynski
3d5774ac9e
Update early MSC3083 support
2021-06-22 16:07:05 +01:00
Travis Ralston
1d8e0398e9
Merge pull request #1747 from SimonBrandner/feature/pr-template
...
Add PR template
2021-06-21 14:06:50 -06:00
Michael Telatynski
cf76375ce0
Move Promise::allSettled typing from react-sdk to js-sdk
2021-06-21 21:04:29 +01:00
RiotRobot
284e2bb911
Resetting package fields for development
2021-06-21 16:28:40 +01:00
RiotRobot
ecb790c179
Merge branch 'master' into develop
2021-06-21 16:28:40 +01:00
RiotRobot
467b75f2dc
v12.0.0
2021-06-21 16:20:26 +01:00
RiotRobot
1f728cab92
Prepare changelog for v12.0.0
2021-06-21 16:20:25 +01:00
Michael Telatynski
66b17aa019
Add type for another-json dep
2021-06-19 19:45:29 +01:00
Michael Telatynski
27a6d1f878
Fix missing await identified by TS conversion
2021-06-19 19:44:47 +01:00
Michael Telatynski
fc67dc6497
Convert crypto index to TS
2021-06-19 19:41:45 +01:00
Travis Ralston
fedd9a981a
Merge pull request #1738 from matrix-org/travis/event-fixes
...
Add functions to assist in immutability of Event objects
2021-06-18 11:23:08 -06:00
Travis Ralston
47e972a66c
Incorporate merge conflict resolution
2021-06-18 11:18:29 -06:00
Travis Ralston
36bd4b5408
Merge remote-tracking branch 'origin/develop' into travis/event-fixes
2021-06-18 11:15:00 -06:00
Travis Ralston
f502233ddc
try to add more docs
2021-06-18 11:14:43 -06:00
Michael Telatynski
59c1edb623
fix tests
2021-06-18 17:56:51 +01:00
Michael Telatynski
9dd00c7731
Fix tests and tweak some optional types
2021-06-18 17:40:04 +01:00
Šimon Brandner
311edb4e4c
Add PR template
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-06-18 17:30:50 +02:00
Michael Telatynski
924b8629d8
Updates around the use of private fields out of class
2021-06-18 16:29:10 +01:00
Michael Telatynski
9e11da1fa5
Fix typing
2021-06-18 16:11:11 +01:00
Michael Telatynski
b760fa0ff5
Switch typescript target to es2020 as we use new things like Promise.allSettled and it needs it
2021-06-18 15:30:53 +01:00
Michael Telatynski
cbce2f46c3
Fix position of invite_room_state on the event
2021-06-18 15:30:30 +01:00
Michael Telatynski
7aa5a79c86
Convert Room and RoomState to Typescript
2021-06-18 15:29:45 +01:00
Michael Telatynski
fc029a9b9e
Add MSC3244 types
2021-06-18 11:39:43 +01:00
Michael Telatynski
86ef80ae9a
Merge branch 'develop' of github.com:matrix-org/matrix-js-sdk into t3chguy/fix/17686
2021-06-18 10:06:05 +01:00
Michael Telatynski
e5b475ad89
Create Typescript types for JoinRule, GuestAccess, HistoryVisibility, including join_rule=restricted
2021-06-18 10:05:29 +01:00
Michael Telatynski
2c6858f149
Merge pull request #1742 from matrix-org/t3chguy/ts/5
2021-06-18 09:49:00 +01:00
Travis Ralston
c1bff0b2ea
delint
2021-06-17 17:38:57 -06:00
Travis Ralston
39892c98f9
Add keysharing on invites to File Tree Spaces
2021-06-17 17:36:49 -06:00
Travis Ralston
b15487ec03
Misc lint
2021-06-17 14:24:39 -06:00
Travis Ralston
303119e113
Merge pull request #1743 from matrix-org/dependabot/npm_and_yarn/lodash-4.17.21
...
Bump lodash from 4.17.20 to 4.17.21
2021-06-17 11:08:33 -06:00
dependabot[bot]
09b729beb5
Bump lodash from 4.17.20 to 4.17.21
...
Bumps [lodash](https://github.com/lodash/lodash ) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases )
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21 )
---
updated-dependencies:
- dependency-name: lodash
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-06-17 17:07:56 +00:00
Travis Ralston
6b73a77b2d
Merge pull request #1740 from matrix-org/travis/invite-retry
...
Add invite retries to file trees
2021-06-17 11:07:06 -06:00
Michael Telatynski
a2449ff6a7
Fix typos
2021-06-17 15:23:40 +01:00
Michael Telatynski
b1b7522b80
Fix tests by updating private field names and spies
2021-06-17 15:18:52 +01:00
Michael Telatynski
608b0e7b93
Fix up some more type defs
2021-06-17 14:49:27 +01:00
Michael Telatynski
7c61b9cf7e
Fix more type definitions
2021-06-17 14:24:53 +01:00
Michael Telatynski
50a973409a
Typescript fixes due to MatrixEvent being TSified
2021-06-17 14:06:03 +01:00
Michael Telatynski
bfea882416
Convert MatrixEvent to TS
2021-06-17 14:04:04 +01:00
Michael Telatynski
f5e8fe836e
Convert Room Member and User to TS
2021-06-17 14:03:52 +01:00
Michael Telatynski
c4664a185f
Convert Event Context to TS
2021-06-17 14:03:34 +01:00
Michael Telatynski
c5f093c42f
Merge pull request #1741 from matrix-org/t3chguy/ts/5
...
Convert IndexedDBStore to TS
2021-06-17 12:15:10 +01:00
Michael Telatynski
64f369b5de
Fix IndexedDBStore ts-ification
2021-06-17 12:10:48 +01:00
Michael Telatynski
4b5653c09b
Convert IndexedDBStore to TS
2021-06-17 11:37:41 +01:00
Michael Telatynski
837e739ec6
Merge pull request #1736 from matrix-org/t3chguy/ts4
2021-06-17 10:51:11 +01:00
Michael Telatynski
b780ee8373
Update src/models/relations.ts
...
Co-authored-by: J. Ryan Stinnett <jryans@gmail.com >
2021-06-17 10:23:09 +01:00
Travis Ralston
fe5bfbf76f
The linter needed appeasing
2021-06-16 20:27:03 -06:00
Travis Ralston
d924617672
Add invite retries to file trees
2021-06-16 20:24:48 -06:00
Michael Telatynski
c545c7ca70
fix MSC3089TreeSpace incorrect type assumption
2021-06-16 20:32:46 +01:00
Michael Telatynski
9eb9f3a117
also do same update on the 3pid invite paths
2021-06-16 20:26:50 +01:00
Michael Telatynski
7862fd9679
just update jsdoc/ts return types due to contention.
2021-06-16 20:24:57 +01:00
Travis Ralston
17402e8475
Work around docgen
2021-06-15 14:32:53 -06:00
Travis Ralston
aac77440db
work around docgen?
2021-06-15 14:29:26 -06:00
Travis Ralston
13c9c4bea5
Add functions to assist in immutability of Event objects
2021-06-15 14:23:27 -06:00
RiotRobot
68c1171294
v12.0.0-rc.1
2021-06-15 16:10:48 +01:00
RiotRobot
f4f01913fe
Prepare changelog for v12.0.0-rc.1
2021-06-15 16:10:48 +01:00
Michael Telatynski
eb5908d5d2
fix tests
2021-06-15 10:15:43 +01:00
Michael Telatynski
e0c36498e6
delint
2021-06-15 10:06:30 +01:00
Michael Telatynski
913710dd99
Convert filter classes to typescript
2021-06-15 10:02:05 +01:00
Michael Telatynski
2f0d96d030
Convert some utils to typescript
2021-06-15 10:01:51 +01:00
Michael Telatynski
265802acb1
Convert some models to typescript
2021-06-15 10:01:38 +01:00
Michael Telatynski
045f31a0dc
Convert some stores to typescript
2021-06-15 10:01:22 +01:00
Travis Ralston
9f6ed4fb33
Merge pull request #1730 from SimonBrandner/show-username
...
Rework how disambiguation is handled
2021-06-15 00:24:06 -06:00
Michael Telatynski
434117c771
Merge pull request #1735 from matrix-org/t3chguy/fix/17282
2021-06-14 22:15:12 +01:00
Michael Telatynski
cd95b8724a
Merge branch 'develop' of github.com:matrix-org/matrix-js-sdk into t3chguy/fix/17282
2021-06-14 21:46:31 +01:00
Michael Telatynski
ec2a4d473e
Iterate algorithm, base it on new js-sdk string lib
2021-06-14 21:28:33 +01:00
Travis Ralston
47eaf3cd58
Merge pull request #1734 from matrix-org/travis/fix-types
...
Move various types from the react-sdk to the js-sdk
2021-06-14 13:48:07 -06:00
Travis Ralston
d7b23a8634
liiiinttteeerrrr
2021-06-14 13:37:19 -06:00
Travis Ralston
6db7972f04
preset
2021-06-14 13:35:20 -06:00
Travis Ralston
6840ee077c
Appease the linter forever
2021-06-14 13:34:37 -06:00
Travis Ralston
3c85bcc3c9
Move various types from the react-sdk to the js-sdk
2021-06-14 13:32:28 -06:00
Travis Ralston
759eca6479
Merge pull request #1732 from matrix-org/travis/file-trees
...
Unstable implementation of MSC3089: File Trees
2021-06-14 12:04:09 -06:00
Travis Ralston
4488f174aa
const
2021-06-14 12:00:59 -06:00
Travis Ralston
991a255041
Fix average on .5
2021-06-14 11:55:41 -06:00
Travis Ralston
cfef635e1b
Appease the linter
2021-06-14 10:41:32 -06:00
Travis Ralston
d3027e1fe8
Offset the alphabet by 1
2021-06-14 10:28:26 -06:00
Travis Ralston
d99ea1c6b4
Update src/utils.ts
...
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com >
2021-06-14 08:21:09 -06:00
Travis Ralston
9af214007e
APPEASE. THE. LINTER.
2021-06-11 11:37:44 -06:00
Travis Ralston
0541b7f3c5
Remove a layer of indirection
2021-06-11 11:36:52 -06:00
Travis Ralston
63fa774af7
Another round of appeasement
2021-06-11 11:34:37 -06:00
Travis Ralston
4b19b36de1
Crude JS->TS conversion on utils test because of linter and BigInt
2021-06-11 11:27:46 -06:00
Travis Ralston
5715df6b18
BigInt, rollover, and developer lint
2021-06-11 11:18:18 -06:00
Michael Telatynski
22bcacc715
Merge pull request #1729 from matrix-org/t3chguy/fix/17282
...
Add MSC3230 event type to enum
2021-06-11 12:40:23 +01:00
Travis Ralston
f1e270ca9d
appease the linter
2021-06-10 15:54:56 -06:00
Travis Ralston
f535e7535c
Update string averaging utils
2021-06-10 15:38:49 -06:00
David Baker
912c5e13e1
Merge pull request #1731 from matrix-org/dbkr/transferred_reason_code
...
Add separate reason code for transferred calls
2021-06-10 13:21:41 +01:00
Travis Ralston
4eb44ee2ea
de-lint 2
2021-06-09 22:14:11 -06:00
Travis Ralston
e41a2beb65
de-lint
2021-06-09 22:09:26 -06:00
Travis Ralston
1f6ba31a3f
Use a sane padStart instead
2021-06-09 21:56:46 -06:00
Travis Ralston
bcccc909c5
Pre-lint format
2021-06-09 21:55:06 -06:00
Travis Ralston
b3a11030f2
Early file management APIs
2021-06-09 21:54:17 -06:00
Travis Ralston
baaf76668f
Early directory management
2021-06-09 21:54:17 -06:00
Šimon Brandner
ca37ae6794
Merge remote-tracking branch 'upstream/develop' into fix/12652/screen-share
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-06-09 19:20:21 +02:00
Hubert Chathi
cf21d64aa8
allow backup algorithm to determine whether restored keys should be trusted
2021-06-09 13:02:47 -04:00
David Baker
36e2533164
Add separate reason code for transferred calls
...
'Replaced' is special cased so the media isn't torn down, but we
were passing Replaced for calls we transferred off elsewhere which
meant we never closed the media capture. Calls transferred elsewhere
aren't really replaced: they may as well have their own code.
2021-06-09 16:52:58 +01:00
Hubert Chathi
c04d79d9a0
initial work on symmetric algorithm for key backups
2021-06-08 21:39:37 -04:00
Travis Ralston
9084b4e7aa
Early implementation of MSC3089 (file trees)
...
MSC: https://github.com/matrix-org/matrix-doc/pull/3089
Includes part of MSC3088 (room subtyping): https://github.com/matrix-org/matrix-doc/pull/3088
The NamespacedValue stuff is borrowed from the Extensible Events implementation PR in the react-sdk as a useful thing to put here. When/if the MSCs become stable, we'd convert the values to enums and drop the constants (or keep them for migration purposes, but switch to stable).
This flags the whole thing as unstable because it's highly subject to change.
2021-06-08 14:43:20 -06:00
Šimon Brandner
f724da7e84
Merge remote-tracking branch 'upstream/develop' into disambiguate-prop
2021-06-08 11:30:50 +02:00
David Baker
4b8f47e2b4
Merge pull request #1728 from matrix-org/dbkr/hold_with_sendonly
...
Use sendonly for call hold
2021-06-08 09:26:57 +01:00
RiotRobot
35ecbed29d
Resetting package fields for development
2021-06-07 17:00:30 +01:00
RiotRobot
30ed153ad1
Merge branch 'master' into develop
2021-06-07 17:00:30 +01:00
RiotRobot
a1098989ff
v11.2.0
2021-06-07 16:57:42 +01:00
RiotRobot
42bb63e07d
Prepare changelog for v11.2.0
2021-06-07 16:57:42 +01:00
Michael Telatynski
683aae5ed5
Add MSC3230 event type to enum
2021-06-07 09:00:08 +01:00
David Baker
49ef274a83
Use sendonly for call hold
...
Instead of inactive. Remove the logic for trying to remember who
had who on hold, which is now unnecesasary. Appears to work fine
with element android & ios too.
2021-06-04 17:22:14 +01:00
J. Ryan Stinnett
af16bba1ec
Merge pull request #1727 from matrix-org/t3chguy/arg
...
Stop breeding sync listeners
2021-06-04 14:09:45 +01:00
Michael Telatynski
781086608e
Stop breeding sync listeners
2021-06-04 13:58:19 +01:00
Šimon Brandner
c1625e5c27
More styling :(
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-06-04 11:44:31 +02:00
Šimon Brandner
0e05f9fd73
Styling
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-06-04 11:41:35 +02:00
Šimon Brandner
ef7595bb06
Merge remote-tracking branch 'upstream/develop' into fix/12652/screen-share
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-06-04 11:38:13 +02:00
J. Ryan Stinnett
e9c98b03b0
Merge pull request #1724 from matrix-org/jryans/semi-linting
...
Fix semicolons in TS files
2021-06-04 10:31:56 +01:00
J. Ryan Stinnett
75370f7855
Reduce allowable warning count
2021-06-04 10:24:55 +01:00
J. Ryan Stinnett
4a79e13410
Auto-fix more errors
2021-06-04 10:24:09 +01:00
J. Ryan Stinnett
220061f022
Merge remote-tracking branch 'origin/develop' into jryans/semi-linting
2021-06-04 10:22:06 +01:00
Šimon Brandner
090c2c0891
Merge remote-tracking branch 'upstream/develop' into fix/12652/screen-share
2021-06-04 08:27:46 +02:00
Travis Ralston
6c317b7f28
Fix types on checkOwnCrossSigningTrust
2021-06-04 00:10:33 -06:00
Travis Ralston
3788fbf607
Merge pull request #1718 from matrix-org/travis/ts-mtxcli
...
[BREAKING] Convert MatrixClient to TypeScript
2021-06-03 19:09:23 -06:00
Travis Ralston
382854c04c
Appease linter
2021-06-03 19:04:49 -06:00
Travis Ralston
c2fae3bad8
Fix missed conversion fallout
2021-06-03 19:02:46 -06:00
Travis Ralston
92ebd39391
Reincorporate crypto changes
...
https://github.com/matrix-org/matrix-js-sdk/pull/1697
2021-06-03 18:59:01 -06:00
Travis Ralston
f53a32a6b4
Merge branch 'develop' into travis/ts-mtxcli
2021-06-03 18:49:08 -06:00
Hubert Chathi
6c882e6605
Merge pull request #1697 from uhoreg/backup_refactor
...
Factor out backup management to a separate module
2021-06-03 18:56:19 -04:00
Hubert Chathi
ca85dfc6ff
re-lint
2021-06-03 18:52:06 -04:00
Hubert Chathi
e22ecc6b6d
Merge branch 'develop' into backup_refactor
2021-06-03 18:43:46 -04:00
Hubert Chathi
2608dd2d64
mark members as public
2021-06-03 18:15:05 -04:00
J. Ryan Stinnett
7d20d24249
Convert small blocks to inline expressions
2021-06-03 15:51:33 +01:00
Travis Ralston
a3ac3692af
private->protected
2021-06-02 22:05:53 -06:00
Travis Ralston
0070c8f843
Merge pull request #1723 from schmop/power-levels-unknown-state-key
...
Ignore power_levels events with unknown state_key on room-state initialization
2021-06-02 19:04:13 -06:00
Travis Ralston
b360fc8308
Fix test failure
2021-06-02 18:42:52 -06:00
Travis Ralston
bf9ba65ac4
Fix olmVersion types
2021-06-02 13:42:20 -06:00
Travis Ralston
43abfbc537
Upstream build pass 2
2021-06-02 13:42:20 -06:00
Travis Ralston
2700f0acf6
Upstream build pass 1
2021-06-02 13:42:20 -06:00
Travis Ralston
9156bed961
Tests pass 2
2021-06-02 13:42:20 -06:00
Travis Ralston
71dc0bac56
Tests pass 1
2021-06-02 13:42:20 -06:00
Travis Ralston
40f55b2964
Lint pass 4
2021-06-02 13:42:20 -06:00
Travis Ralston
9307f9f345
Build pass 2
2021-06-02 13:42:20 -06:00
Travis Ralston
dfb918adc3
Lint pass 3
2021-06-02 13:42:20 -06:00
Travis Ralston
2f87a4859e
Lint pass 2
2021-06-02 13:42:20 -06:00
Travis Ralston
191f73e0d0
Appease typescript
2021-06-02 13:42:20 -06:00
Travis Ralston
263e55f25d
Build pass 1
2021-06-02 13:42:20 -06:00
Travis Ralston
5c55dce13e
Lint pass 1
2021-06-02 13:42:20 -06:00
Travis Ralston
a1a6ec6dfa
Fix remaining hot paths
2021-06-02 13:42:20 -06:00
Travis Ralston
e1edd84700
Early pass to fix runtime/build errors
2021-06-02 13:42:20 -06:00
Travis Ralston
07ee256756
Incorporate https://github.com/matrix-org/matrix-js-sdk/pull/1720
2021-06-02 13:42:20 -06:00
Travis Ralston
48888e530e
Defer types
2021-06-02 13:42:20 -06:00
Travis Ralston
4ef50bef55
define this.identityServer
2021-06-02 13:42:20 -06:00
Travis Ralston
486369e97c
Clean up "base-apis" find&replace
2021-06-02 13:42:20 -06:00
Travis Ralston
67994f7a53
Move new MatrixClient into place
2021-06-02 13:42:20 -06:00
Travis Ralston
f027ddaf35
Autoformat
2021-06-02 13:42:20 -06:00
Travis Ralston
f3b27d1e06
Cleanup
2021-06-02 13:42:20 -06:00
Travis Ralston
92e18b32dc
Import MatrixError
2021-06-02 13:42:20 -06:00
Travis Ralston
4030ec9c8b
Fix easy typing errors
2021-06-02 13:42:20 -06:00
Travis Ralston
497c2dc8df
Bring in BaseApis to MatrixClient
2021-06-02 13:42:20 -06:00
Travis Ralston
8a1d34c419
[Combined] First pass of JS->TS for MatrixClient
2021-06-02 13:42:20 -06:00
Travis Ralston
caab5befaa
Rename client.js -> 1client.ts for future commits
2021-06-02 13:42:20 -06:00
Travis Ralston
0d316e3d3e
Move useful docs to ICreateClientOpts
2021-06-02 13:42:20 -06:00
Šimon Brandner
d8fd12103a
Merge branch 'develop' into fix/12652/screen-share
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-06-02 16:09:11 +02:00
David Baker
8f9a682d34
Merge pull request #1725 from matrix-org/dbkr/revert_1579
...
Revert 1579 (Fix extra negotiate message in Firefox)
2021-06-02 15:04:17 +01:00
David Baker
102d5acf09
Revert 1579
...
This is causing all sorts of problems, like
https://github.com/vector-im/element-web/issues/17450
and also issues where we fail to respond to negotiates because
we can't adjust a direction of a stopped transceiver. Until
s/inactive/sendonly/ let's live with the minor firefox bug rather
than all this brokenness.
2021-06-02 14:41:55 +01:00
J. Ryan Stinnett
e2ec8952e3
Fix semicolons in TS files
...
This updates the linting config to include the semi fix in
https://github.com/matrix-org/eslint-plugin-matrix-org/pull/8 . The various semi
errors have been auto-fixed.
2021-06-02 11:49:39 +01:00
Lars Richard
b4eff9b996
Ignore m.room.power_levels events with unknown state_key on room-state initialization
...
Signed-off-by: Lars Richard <lars.richard@iserv.eu >
2021-06-02 11:42:50 +02:00
RiotRobot
d050261fa9
v11.2.0-rc.1
2021-06-01 16:09:49 +01:00
RiotRobot
d29330815e
Prepare changelog for v11.2.0-rc.1
2021-06-01 16:09:48 +01:00
Michael Telatynski
801b4022de
Merge pull request #1720 from matrix-org/t3chguy/fix/17521
...
Switch to stable endpoint/fields for MSC2858
2021-06-01 12:07:25 +01:00
Michael Telatynski
bcb4071993
Strip hash from urls being previewed to de-duplicate
2021-06-01 11:17:30 +01:00
Michael Telatynski
e78fbd1dff
Switch to stable endpoint/fields for MSC2858
2021-06-01 11:01:10 +01:00
Hubert Chathi
c543358826
add unit test and minor fixes
2021-05-31 21:52:20 -04:00
Travis Ralston
ff2954839b
Merge pull request #1715 from matrix-org/dependabot/npm_and_yarn/ws-7.4.6
...
Bump ws from 7.4.2 to 7.4.6
2021-05-29 21:44:48 -06:00
dependabot[bot]
1a91b88968
Bump ws from 7.4.2 to 7.4.6
...
Bumps [ws](https://github.com/websockets/ws ) from 7.4.2 to 7.4.6.
- [Release notes](https://github.com/websockets/ws/releases )
- [Commits](https://github.com/websockets/ws/compare/7.4.2...7.4.6 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-05-29 21:09:19 +00:00
Šimon Brandner
5724462c2c
Delint
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-28 17:45:52 +02:00
Šimon Brandner
0a0489750c
Add missing space
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-28 17:37:55 +02:00
Šimon Brandner
f46190509a
Merge remote-tracking branch 'upstream/develop' into fix/12652/screen-share
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-28 17:37:17 +02:00
Germain
25ec81b6c7
Merge pull request #1712 from matrix-org/gsouquet/fix/17393
...
Make consistent call event type checks
2021-05-28 13:09:35 +01:00
J. Ryan Stinnett
a50802a63f
Merge pull request #1714 from matrix-org/jryans/babel-config
...
Apply new Babel linting config
2021-05-28 13:04:06 +01:00
J. Ryan Stinnett
ce1d374a82
Merge pull request #1709 from matrix-org/dependabot/npm_and_yarn/browserslist-4.16.6
...
Bump browserslist from 4.16.1 to 4.16.6
2021-05-28 11:41:38 +01:00
J. Ryan Stinnett
6dca8ac460
Switch to new Babel lint config
...
This also adjusts the TypeScript project lint config to cover *.ts test files
too.
2021-05-28 11:39:06 +01:00
J. Ryan Stinnett
4dc21674d5
Fix log usage
2021-05-28 11:30:20 +01:00
J. Ryan Stinnett
8805dd8c01
Auto-fix lint errors
2021-05-28 11:15:10 +01:00
David Baker
73b624e761
Merge pull request #1713 from matrix-org/dbkr/user_busy
...
Add user_busy call hangup reason
2021-05-28 09:42:56 +01:00
David Baker
c44fd972b6
Add user_busy call hangup reason
...
And fix hangup reasons in reject events
2021-05-27 18:56:27 +01:00
J. Ryan Stinnett
ff344bc110
Switch lint parsers
2021-05-27 17:51:03 +01:00
J. Ryan Stinnett
b0e2a38325
Auto-fix lint errors
2021-05-27 17:50:16 +01:00
J. Ryan Stinnett
fbb741ab10
Switch to new Babel linting config
2021-05-27 17:49:35 +01:00
Šimon Brandner
75321220fd
Simplifie code - don't be an idiot
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-27 18:49:02 +02:00
Šimon Brandner
43198b0425
Disable RTX only for screen-sharing transceivers
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-27 18:41:48 +02:00
Šimon Brandner
4aa2c03ff0
Merge branch 'develop' into fix/12652/screen-share
2021-05-27 18:23:22 +02:00
Germain
3a3be36f4c
Merge pull request #1688 from matrix-org/gsouquet/pr-review-linting-rules
2021-05-27 16:03:36 +01:00
Germain Souquet
cb91c4292c
Merge branch 'develop' into gsouquet/pr-review-linting-rules
2021-05-27 16:00:12 +01:00
Germain Souquet
80722ce145
make consistent call event type checks
2021-05-27 09:55:50 +01:00
Hubert Chathi
07bfa5532e
fix more unit tests
2021-05-26 18:18:30 -04:00
J. Ryan Stinnett
cea1a3ff91
Merge pull request #1710 from matrix-org/jryans/hidden-events-reactions
...
Emit relations created when target event added later
2021-05-26 17:34:47 +01:00
J. Ryan Stinnett
270be2df7a
Emit relations created when target event added later
...
This changes the "relations created" event to ensure it is properly emitted even
if the target event is added to the timeline after the relation event. There was
perhaps always a risk of this happening in the past, but is seems more likely to
bite now with delayed decryption.
Part of https://github.com/vector-im/element-web/issues/17461
2021-05-26 16:35:49 +01:00
Hubert Chathi
e73b969066
lint
2021-05-25 22:10:15 -04:00
Hubert Chathi
98e2154f0f
fix unit tests
2021-05-25 21:59:08 -04:00
dependabot[bot]
2c0549a772
Bump browserslist from 4.16.1 to 4.16.6
...
Bumps [browserslist](https://github.com/browserslist/browserslist ) from 4.16.1 to 4.16.6.
- [Release notes](https://github.com/browserslist/browserslist/releases )
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md )
- [Commits](https://github.com/browserslist/browserslist/compare/4.16.1...4.16.6 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-05-25 21:59:49 +00:00
RiotRobot
acb9bc8cc5
Resetting package fields for development
2021-05-24 17:14:02 +01:00
RiotRobot
6f44aa39e8
Merge branch 'master' into develop
2021-05-24 17:13:42 +01:00
RiotRobot
c706618229
v11.1.0
2021-05-24 17:09:09 +01:00
RiotRobot
c26b571b1c
Prepare changelog for v11.1.0
2021-05-24 17:09:08 +01:00
J. Ryan Stinnett
cb3075b084
Merge pull request #1707 from matrix-org/jryans/olm-3.2.3-release
...
[Release] Bump libolm version and update package name
2021-05-24 16:49:25 +01:00
Hubert Chathi
66fb21bd0b
bump olm to 3.2.3
2021-05-24 16:27:56 +01:00
Hubert Chathi
498109bd53
update test too
2021-05-24 16:27:56 +01:00
Hubert Chathi
6711ab5f9a
Bump libolm version and update package name.
2021-05-24 16:27:56 +01:00
J. Ryan Stinnett
ac8fa58845
Merge pull request #1705 from uhoreg/olm_3.2.2
...
Bump libolm version and update package name.
2021-05-24 16:22:15 +01:00
Hubert Chathi
095f656998
bump olm to 3.2.3
2021-05-24 11:10:52 -04:00
Hubert Chathi
9e30c4f7dd
update test too
2021-05-21 16:28:37 -04:00
Hubert Chathi
56a2eeac77
Bump libolm version and update package name.
2021-05-21 16:04:54 -04:00
Michael Telatynski
d104f2f4a7
Merge pull request #1703 from matrix-org/t3chguy/uploadContent
...
Fix uploadContent not rejecting promise when http status code >= 400
2021-05-20 18:43:12 +01:00
Michael Telatynski
e8367ad241
fix httpStatus being resolved when response is undefined
2021-05-20 18:33:17 +01:00
Michael Telatynski
f17cd142d5
Fix uploadContent not rejecting promise when http status code >= 400
2021-05-20 15:43:22 +01:00
Šimon Brandner
db4c6af472
Fix an odd mistake
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-20 15:54:08 +02:00
Šimon Brandner
87689ca733
Merge remote-tracking branch 'upstream/develop' into fix/12652/screen-share
2021-05-20 15:50:15 +02:00
Šimon Brandner
a1a5d85979
Stop tracks only if disabling screen-sharing
...
The other thing lead to usermedia tracks being stopped when on hold
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-20 15:49:56 +02:00
Šimon Brandner
b1459a43ef
Also put getRidOfRTXCodecs() before createAnswer()
...
Just to be sure
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-20 15:11:23 +02:00
J. Ryan Stinnett
e8edc554a6
Merge pull request #1702 from matrix-org/jryans/test-noise
...
Reduce noise in tests
2021-05-20 13:42:31 +01:00
J. Ryan Stinnett
bd8aca83ac
Reduce noise in tests
...
This disables a common log message to cut down the test log size and make it
easier to read messages specific to each test.
2021-05-20 13:41:54 +01:00
J. Ryan Stinnett
7ebc1cfac5
Merge pull request #1700 from matrix-org/matthew/kill-invite-logspam
...
Only log once if a Room lacks an m.room.create event
2021-05-20 12:02:32 +01:00
Germain
2422204d6a
Merge pull request #1701 from matrix-org/gsouquet/cache-normalized-name
...
Cache normalized room name
2021-05-20 11:12:00 +01:00
Germain Souquet
6c98c3c662
Remove reference to room name in utils
2021-05-20 10:58:20 +01:00
Germain Souquet
1d1310f034
Cache normalized room name
2021-05-20 10:44:47 +01:00
J. Ryan Stinnett
841888c480
Merge pull request #1699 from matrix-org/jryans/call-enc-release
...
[Release] Change call event handlers to adapt to undecrypted events
2021-05-19 21:28:19 +01:00
Šimon Brandner
8797381f44
Merge remote-tracking branch 'upstream/develop' into fix/12652/screen-share
2021-05-19 21:07:04 +02:00
Šimon Brandner
92e89ffbcf
Add getRidOfRTXCodecs() method
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-19 21:06:35 +02:00
Matthew Hodgson
52c031f160
Only log once if a Room lacks an m.room.create event
...
Currently my account is logging ~20,000 warnings a minute about getType() being called
on invites which have no m.room.create events, which crashes my inspector and makes
my console unusable. We still want the logline though, as it helps diagnose
space invite problems. So instead, log this only once. (Untested).
2021-05-19 19:02:31 +01:00
Germain Souquet
155113b75d
move startEventCallHandler to MatrixClient prototype
2021-05-19 18:16:20 +01:00
Germain Souquet
2a863025c6
listen to call event handlers when sync is prepared
2021-05-19 18:15:39 +01:00
Germain Souquet
b6763ce89f
Change call event handlers to adapt to undecrypted events
2021-05-19 18:14:28 +01:00
Germain
f346cd6b8d
Merge pull request #1698 from matrix-org/gsouquet/fix-call-handlers
2021-05-19 17:23:51 +01:00
Germain Souquet
0c47412c75
move startEventCallHandler to MatrixClient prototype
2021-05-19 17:15:44 +01:00
Germain Souquet
ea1ef3dbec
listen to call event handlers when sync is prepared
2021-05-19 17:05:20 +01:00
Germain Souquet
61fd62ff81
Merge branch 'develop' into gsouquet/fix-call-handlers
2021-05-19 16:51:29 +01:00
Germain Souquet
32197ea903
Change call event handlers to adapt to undecrypted events
2021-05-19 15:45:21 +01:00
RiotRobot
65de184d88
v11.1.0-rc.1
2021-05-19 14:29:51 +01:00
RiotRobot
52764045ce
Prepare changelog for v11.1.0-rc.1
2021-05-19 14:29:50 +01:00
Šimon Brandner
c2da4376e0
Merge remote-tracking branch 'upstream/develop' into fix/12652/screen-share
2021-05-19 15:21:00 +02:00
J. Ryan Stinnett
4b0db6c472
Guard against duplicates in Relations model
...
The `Relations` model was relying on object reference equality to prevent
duplicates, which breaks down if we ever have two objects that represent the
same event.
This fixes things to additionally track event IDs we've seen before and discard
any attempts to add them twice.
Fixes https://github.com/vector-im/element-web/issues/11161
2021-05-19 13:20:40 +01:00
Šimon Brandner
78ebf8f117
Merge remote-tracking branch 'upstream/develop' into fix/12652/screen-share
2021-05-19 08:46:54 +02:00
Hubert Chathi
3ec89a89df
fix some types
2021-05-18 18:40:36 -04:00
Hubert Chathi
9e6b72bf38
some linting
2021-05-18 18:31:19 -04:00
Hubert Chathi
747723c8fb
factor out backup management to a separate module
2021-05-18 18:15:22 -04:00
Germain
40cd4629db
Decrypt relations before applying them to target event ( #1696 )
2021-05-18 17:21:06 +01:00
RiotRobot
52a893a811
Resetting package fields for development
2021-05-17 13:32:49 +01:00
RiotRobot
7cc94e1e1e
Merge branch 'master' into develop
2021-05-17 13:32:48 +01:00
RiotRobot
88945a6d6d
v11.0.0
2021-05-17 13:30:08 +01:00
RiotRobot
7203c5aaf0
Prepare changelog for v11.0.0
2021-05-17 13:30:07 +01:00
J. Ryan Stinnett
c305058c46
Merge pull request #1695 from matrix-org/jryans/glare-streams-release
...
[Release] Fix regressed glare
2021-05-17 11:55:25 +01:00
Šimon Brandner
91bbf7d1a8
Fix glare
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-17 11:20:14 +01:00
J. Ryan Stinnett
2d5857f145
Merge pull request #1690 from SimonBrandner/fix/glare/17250
...
Fix regressed glare
2021-05-17 11:11:39 +01:00
Šimon Brandner
5de189bfa3
Improve logging in pushRemoteFeed()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-15 11:06:04 +02:00
Travis Ralston
91af9a411d
Null-guard power level object usage ( #1694 )
2021-05-14 08:36:44 +01:00
Germain
9a9ed124f5
Use native Object and Array methods ( #1693 )
2021-05-13 17:20:09 +01:00
Šimon Brandner
44fc820f99
Make feed pushing methods more verbose
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-13 18:12:48 +02:00
Michael Telatynski
4e5442d972
Merge pull request #1692 from matrix-org/t3chguy/fix/i80
...
Add m.reaction to EventType enum
2021-05-13 12:44:42 +01:00
Šimon Brandner
5a8e5a9785
Log local SDPStreamMetadata
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-13 13:43:44 +02:00
Šimon Brandner
960c5da3b2
Merge branch 'develop' into fix/12652/screen-share
2021-05-13 13:39:51 +02:00
Michael Telatynski
b5fa54f91e
Add m.reaction to EventType enum
2021-05-13 10:57:02 +01:00
Germain
2246aede4b
Merge pull request #1684 from matrix-org/gsouquet/cache-decrypt
2021-05-12 12:19:59 +01:00
Šimon Brandner
4b2d409c69
Fix glare
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-12 07:47:48 +02:00
RiotRobot
684511ff06
v11.0.0-rc.1
2021-05-11 15:03:04 +01:00
RiotRobot
88b328df7e
Prepare changelog for v11.0.0-rc.1
2021-05-11 15:03:03 +01:00
Michael Telatynski
e3583dd04e
Merge pull request #1679 from matrix-org/t3chguy/spaces-stable
...
Switch from MSC1772 unstable prefixes to stable
2021-05-11 13:39:47 +01:00
Germain Souquet
e484a2ebb5
add missing coma to appease linter
2021-05-11 13:02:42 +01:00
Germain Souquet
5caf05cfa1
Apply new linting rules
2021-05-11 11:25:43 +01:00
Germain Souquet
72f86258d0
Add explainer for awaitDecryption
2021-05-11 10:05:24 +01:00
Germain Souquet
874cb3b779
make attemptDecryption backwards compatible
2021-05-11 10:02:32 +01:00
Germain
f21e0228b4
Update documentation wording
...
Co-authored-by: Travis Ralston <travpc@gmail.com >
2021-05-11 09:20:14 +01:00
Šimon Brandner
00a28e743d
Move track.stop() to deleteFeedByStream()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-10 19:18:39 +02:00
Šimon Brandner
2596c25ccc
Add missing semicolon
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-10 19:17:07 +02:00
Germain Souquet
01cd82bc6a
undo test timeout
2021-05-10 18:12:47 +01:00
Šimon Brandner
582aafa552
Simpler naming
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-10 19:12:33 +02:00
Germain Souquet
d2a6a8b283
Merge branch 'develop' into gsouquet/cache-decrypt
2021-05-10 17:35:05 +01:00
Germain Souquet
f242e460ed
fix tests
2021-05-10 17:28:00 +01:00
Šimon Brandner
61e7d4f807
Remove some leftovers from placeScreensharingCall()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-10 18:22:06 +02:00
Germain Souquet
95e08253a6
Appease linter
2021-05-10 16:59:54 +01:00
Germain Souquet
202a4fa6f1
Better document new room methods
2021-05-10 15:55:16 +01:00
Germain Souquet
576f46cb88
Add flag to prevent emitting event.decrypted
2021-05-10 15:25:07 +01:00
J. Ryan Stinnett
2d73805ca3
Merge pull request #1680 from SimonBrandner/feed-example
...
Update the VoIP example to work with the new changes
2021-05-10 14:50:18 +01:00
J. Ryan Stinnett
eedfa550a6
Merge pull request #1687 from matrix-org/dependabot/npm_and_yarn/hosted-git-info-2.8.9
...
Bump hosted-git-info from 2.8.8 to 2.8.9
2021-05-10 14:48:34 +01:00
dependabot[bot]
4ca718adc4
Bump hosted-git-info from 2.8.8 to 2.8.9
...
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info ) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases )
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md )
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-05-10 13:46:58 +00:00
RiotRobot
7c4ced8f46
Resetting package fields for development
2021-05-10 14:46:14 +01:00
RiotRobot
7018f4ab25
Merge branch 'master' into develop
2021-05-10 14:46:13 +01:00
RiotRobot
fda13875ef
v10.1.0
2021-05-10 14:43:18 +01:00
RiotRobot
8005917452
Prepare changelog for v10.1.0
2021-05-10 14:43:17 +01:00
Šimon Brandner
f2c215311f
If we can't get constraints don't error
...
We do this because it could mean the user just hasn't selected a window/screen
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-10 13:01:06 +02:00
Šimon Brandner
a13cf0e1e0
Remove placeScreenSharingCall()
...
This method is quite problematic and doesn't have any benefits
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-10 12:27:21 +02:00
Šimon Brandner
ff60bbac9d
Remove import that was a mistake
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-10 07:35:25 +02:00
Šimon Brandner
16f569136b
Simplifie and avoid repetation
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-09 18:48:08 +02:00
Šimon Brandner
27c172361f
Add a log line to pushLocalFeed()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-08 20:03:47 +02:00
Šimon Brandner
1e0d6b9d4a
Jest: should fallback to replaceTrack() if the other side doesn't support SPDStreamMetadata
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-08 15:50:20 +02:00
Šimon Brandner
b67cd94ee2
Jest: should map SDPStreamMetadata to feeds
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-08 15:39:11 +02:00
Šimon Brandner
c6764490c6
Use for loop
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-08 14:17:10 +02:00
Šimon Brandner
18580624e6
Use opponentSupportsSDPStreamMetadata()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-08 14:16:43 +02:00
Šimon Brandner
7b333a34b5
Warn level
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-08 14:16:30 +02:00
Šimon Brandner
d0707e183d
Make shift-click work again
...
This is VERY ugly but it works
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-08 10:02:27 +02:00
Šimon Brandner
fa3b246de5
Add addToPeerConnection param
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-08 10:00:59 +02:00
Šimon Brandner
df28d87d25
Remove log line
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-08 09:29:41 +02:00
Šimon Brandner
fc68bb3ae0
Add ()!!!
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-08 09:29:31 +02:00
Šimon Brandner
82c530da95
Add setScreensharingEnabledWithoutMetadataSupport as a fallback()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-08 09:08:06 +02:00
Šimon Brandner
d250e7387c
Merge screenshare track into usermedia stream
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-08 09:02:01 +02:00
Šimon Brandner
cbc74815d8
Use getScreensharingStream()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-08 08:46:29 +02:00
Šimon Brandner
e9b802deb3
Use getScreensharingStream() in setScreensharingEnabled()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-08 08:03:45 +02:00
Šimon Brandner
377ca0c678
Add getScreensharingStream()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-08 08:01:56 +02:00
Šimon Brandner
972aef7a9d
Merge feed delete methods and add sender arrays
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-08 07:40:46 +02:00
Šimon Brandner
a35559be65
Add a method to start screensharing
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-07 21:33:05 +02:00
Šimon Brandner
0e6b43a769
Hook up methods to delete feeds
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-07 21:02:56 +02:00
Šimon Brandner
8c8a68d3ae
Add methods to delete feeds
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-07 21:01:56 +02:00
Šimon Brandner
4d74b5cdad
Send SDPStreamMetadata in negotiation response
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-07 20:57:45 +02:00
Šimon Brandner
b1ace49f9a
Add methods useful for screensharing
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-07 20:53:19 +02:00
Germain Souquet
91eee8587e
extract shouldAttemptDecryption to event model
2021-05-07 15:16:04 +01:00
Germain Souquet
e9132abc25
Do not attempt to decrypt already clear events
2021-05-07 12:58:53 +01:00
Šimon Brandner
640d13af99
Set remoteSDPStreamMetadata in onNegotiateReceived()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-07 13:20:36 +02:00
Šimon Brandner
50e0f6353a
Move adding tracks into pushLocalFeed()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-07 13:15:09 +02:00
Germain Souquet
444eac5c6e
consolidate critical event decryption implementation
2021-05-07 11:23:59 +01:00
Šimon Brandner
30f2263443
Rework pushing of remote feeds for MSC3077
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-07 11:18:25 +02:00
Šimon Brandner
25eb6de220
Send SDPStreamMetadata in answer
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-07 11:17:08 +02:00
Šimon Brandner
cebdc44689
Set remoteSDPStreamMetadata from answer
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-07 11:11:31 +02:00
Šimon Brandner
23f5c2e03f
Add a separate method to push local feed
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-07 10:43:36 +02:00
Šimon Brandner
4d4a6ede21
Use somicolons instead
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-07 10:41:59 +02:00
Šimon Brandner
6a920fe623
Get sdpStreamMetadata from invite
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-07 07:56:27 +02:00
Šimon Brandner
631faa2046
Send SDPStreamMetadata
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-06 17:18:30 +02:00
Šimon Brandner
a4e853e1d4
Add types for MSC3077
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-05-06 17:15:04 +02:00
Šimon Brandner
a449c5f8c2
Merge branch 'develop' into feed-example
2021-05-06 16:44:29 +02:00
Germain Souquet
19d6dbaa52
Use read receipt instead of read marker
2021-05-06 14:07:38 +01:00
Germain Souquet
8820619e82
Pass decrypt flag to event mapper
2021-05-06 12:34:21 +01:00
Germain Souquet
fb33bc7e07
Lazily decrypt event on room view
2021-05-06 11:46:14 +01:00
J. Ryan Stinnett
57d1fa8410
Merge pull request #1660 from SimonBrandner/feed
...
Support for multiple streams (not MSC3077)
2021-05-06 11:19:52 +01:00
Michael Telatynski
838e38d84c
Merge pull request #1683 from matrix-org/t3chguy/spaces-logs
...
Tweak missing m.room.create errors to describe their source
2021-05-06 00:06:38 +01:00
Michael Telatynski
fc29056530
Tweak missing m.room.create errors to describe their source
2021-05-05 23:58:40 +01:00
RiotRobot
4e967c979c
v10.1.0-rc.1
2021-05-04 15:37:55 +01:00
RiotRobot
62a34848c7
Prepare changelog for v10.1.0-rc.1
2021-05-04 15:37:54 +01:00
Travis Ralston
01fe6cc542
Merge pull request #1681 from matrix-org/revert-1678-travis/event-logging
...
Revert "Raise logging dramatically to chase pending event errors"
2021-05-02 19:11:06 -06:00
Travis Ralston
3fdc25777d
Revert "Raise logging dramatically to chase pending event errors"
2021-05-02 19:10:47 -06:00
Šimon Brandner
3b7d6f8334
This check doesn't seem to be necessary
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-04-30 14:43:00 +02:00
Šimon Brandner
4b3c8b2969
Update the example to work with the new feed code
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-04-30 14:18:20 +02:00
Šimon Brandner
ad80d69369
Add some basic styling
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-04-30 14:17:30 +02:00
Michael Telatynski
e2d2249686
Switch from MSC1772 unstable prefixes to stable
2021-04-30 11:33:45 +01:00
J. Ryan Stinnett
dc64c34ccb
Merge pull request #1677 from matrix-org/jryans/coverage
...
Add test coverage collection script
2021-04-28 17:18:07 +01:00
Travis Ralston
0bf50659ab
Merge pull request #1678 from matrix-org/travis/event-logging
...
Raise logging dramatically to chase pending event errors
2021-04-28 09:30:04 -06:00
Travis Ralston
ec26b16ddf
Raise logging dramatically to chase pending event errors
...
For https://github.com/vector-im/element-web/issues/17090 and similar issues
This logging is expected to exist no longer than a day.
2021-04-28 09:24:19 -06:00
J. Ryan Stinnett
a044b74a1d
Add test coverage collection script
...
This makes it clear to how collect basic test coverage when desired.
2021-04-28 14:17:08 +01:00
J. Ryan Stinnett
1e7a1dce90
Move Jest options into config block
2021-04-28 12:58:39 +01:00
Šimon Brandner
41c2772cff
Merge branch 'develop' into feed
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-04-28 10:57:59 +02:00
David Baker
1bba2bc0ed
Merge pull request #1674 from matrix-org/dbkr/asserted_identity
...
Support MSC3086 asserted identity
2021-04-28 09:47:30 +01:00
Šimon Brandner
e11c523a75
Add getLocalFeeds() and getRemoteFeeds()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-04-27 10:06:21 +02:00
RiotRobot
b911a890cf
Add breaking notice
2021-04-26 18:03:19 +01:00
RiotRobot
c8f69c0b79
Resetting package fields for development
2021-04-26 17:37:06 +01:00
RiotRobot
8a6248f120
Merge branch 'master' into develop
2021-04-26 17:37:06 +01:00
RiotRobot
340fa6c63e
v10.0.0
2021-04-26 17:34:17 +01:00
RiotRobot
1177bf39a2
Prepare changelog for v10.0.0
2021-04-26 17:34:16 +01:00
Šimon Brandner
88b310c394
Rename stuff to make it easy to read
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-04-26 16:00:17 +02:00
Šimon Brandner
973de2db55
stopAllMedia() before deleteAllFeeds()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-04-24 12:56:28 +02:00
Šimon Brandner
1fe92f10c1
Delint
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-04-24 12:26:54 +02:00
Šimon Brandner
0e2e906b24
Remove remoteStream prop
...
This is done in order to be more generic
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-04-24 12:24:15 +02:00
Šimon Brandner
4667f8be03
Use feeds in stopAllMedia()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-04-24 12:08:45 +02:00
David Baker
4a51ac7a74
Move createNewMatrixCall to the client object
...
So we can mock it out it tests (and also I'm not sure why it was
like this in the first place: we passed the client in anyway...)
Deprecate createNewMatrixCall
2021-04-23 14:36:56 +01:00
J. Ryan Stinnett
6099efe41a
Merge pull request #1670 from timokoesters/fix-undefined-results
...
Fix `/search` with no results field work again
2021-04-23 13:02:52 +01:00
Germain
4254d595fc
Merge pull request #1672 from hannojg/patch-5
2021-04-22 09:27:22 +01:00
Šimon Brandner
e4fbbd56a9
Improve wording
...
Co-authored-by: Travis Ralston <travpc@gmail.com >
2021-04-22 07:36:53 +02:00
Timo Kösters
069ca4a89d
fix: make /search with no results field work again
2021-04-21 22:56:36 +02:00
Šimon Brandner
4290e8e56b
Merge branch 'develop' into disambiguate-prop
2021-04-21 18:07:50 +02:00
RiotRobot
e3ba08fbbc
v10.0.0-rc.1
2021-04-21 16:40:23 +01:00
RiotRobot
dd84e51161
Prepare changelog for v10.0.0-rc.1
2021-04-21 16:40:22 +01:00
David Baker
bca8568d64
missing semicolon
2021-04-20 12:58:33 +01:00
David Baker
5407717534
Assert event emitted
2021-04-20 12:57:11 +01:00
David Baker
74ef760591
Tests: They find bugs
2021-04-20 12:48:54 +01:00
Germain
b435b582bd
Merge pull request #1675 from matrix-org/gsouquet-powerlevels-perf
...
Restrict event emit for room members that had power levels changed
2021-04-20 11:57:18 +01:00
Germain Souquet
d46021a05e
Restrict event emit for room members that had power levels changed
2021-04-20 11:22:16 +01:00
David Baker
1b31d0622e
Unit test for asserted identity messages
2021-04-20 11:08:06 +01:00
Šimon Brandner
a416fd562b
Oops - remove log
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-04-20 11:11:33 +02:00
Šimon Brandner
323a096dd7
Merge branch 'disambiguate-prop' of https://github.com/SimonBrandner/matrix-js-sdk into disambiguate-prop
2021-04-20 11:01:20 +02:00
Šimon Brandner
628dd7bf41
Return false by default
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-04-20 11:01:13 +02:00
Šimon Brandner
71c6d71cae
Fix docs
...
Co-authored-by: Jonathan de Jong <jonathandejong02@gmail.com >
2021-04-20 10:53:39 +02:00
Šimon Brandner
e049edd449
Add docs
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-04-20 10:44:17 +02:00
Michael Telatynski
68206a6e19
Merge pull request #1669 from hannojg/patch-3
...
Fix sync with misconfigured push rules
2021-04-20 08:57:16 +01:00
David Baker
56797948af
lint
2021-04-19 20:36:00 +01:00
David Baker
c0af2f25a1
Support MSC3086 asserted identity
2021-04-19 20:28:42 +01:00
Šimon Brandner
0fdfc3ff53
Rework how disambiguation is handled
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-04-18 21:01:53 +02:00
Hanno J. Gödecke
dc12b1df00
feat: room.getMembers
...
Signed-off-by: Hanno Gödecke <hgoedecke@cuvent.com >
2021-04-18 16:01:51 +02:00
Hanno J. Gödecke
b13f5aebfd
lint
2021-04-17 09:42:44 +02:00
Hanno J. Gödecke
338301bb5d
fix: failure during sync
2021-04-17 09:34:31 +02:00
Šimon Brandner
72a0931663
Remove comment: // Fix when client is TSified
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-04-16 11:38:01 +02:00
Šimon Brandner
67584b9cc3
Merge branch 'feed' of https://github.com/SimonBrandner/matrix-js-sdk into feed
2021-04-16 11:10:22 +02:00
Šimon Brandner
1bfaa28f9c
Fix missing types
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-04-16 11:09:28 +02:00
Hubert Chathi
cbe9b59222
Merge pull request #1665 from uhoreg/dehydrated_device_missing_await
...
Add missing await
2021-04-14 10:47:09 -04:00
Hubert Chathi
276b52f0fe
add missing await
2021-04-14 10:29:39 -04:00
Šimon Brandner
07f49bcc37
Merge branch 'develop' into feed
2021-04-13 12:33:23 +02:00
J. Ryan Stinnett
09fac77ce0
Merge pull request #1642 from matrix-org/jryans/rework-linting
...
Migrate to `eslint-plugin-matrix-org`
2021-04-13 11:12:39 +01:00
J. Ryan Stinnett
102704e91a
Migrate to eslint-plugin-matrix-org
...
This migrates to the new plugin form of our custom ESLint configs. As part of
this, some packages are de-duplicated, configs streamlined, etc.
2021-04-13 11:00:41 +01:00
Michael Telatynski
c5fb351baa
Merge pull request #1664 from matrix-org/t3chguy/fix/8665
...
Add missing event type enum for key verification done
2021-04-13 10:05:00 +01:00
Michael Telatynski
98f8d4414d
Add missing event type enum for key verification done
2021-04-13 09:41:53 +01:00
Germain
1dddcd4925
Merge pull request #1663 from matrix-org/gsouquet-timeline-jumpiness
2021-04-12 15:00:49 +01:00
Germain Souquet
2666a271a5
fix tests when pendingEventsList does not exist
2021-04-12 14:51:45 +01:00
RiotRobot
e277de6e3d
Resetting package fields for development
2021-04-12 14:42:29 +01:00
RiotRobot
daa17b3287
Merge branch 'master' into develop
2021-04-12 14:42:29 +01:00
RiotRobot
c7f887131e
v9.11.0
2021-04-12 14:39:33 +01:00
RiotRobot
58546b80d0
Prepare changelog for v9.11.0
2021-04-12 14:39:32 +01:00
Germain Souquet
466f749b71
fix typo
2021-04-12 14:38:27 +01:00
Germain Souquet
4c2a83c470
Add explanation for events persistence
2021-04-12 14:29:10 +01:00
Germain Souquet
d534ab18c7
fix event filtering logic
2021-04-12 13:07:57 +01:00
Germain Souquet
64aaed833b
Only persist encrypted events for encrypted rooms
2021-04-12 12:53:27 +01:00
Germain Souquet
2f05be599c
undo changes to event#toJSON and persist encrypted events
2021-04-12 12:26:27 +01:00
Germain Souquet
7371f8dd3a
Persist txnId to ensure idempotency
2021-04-12 09:55:01 +01:00
Germain Souquet
79aefe9707
Fix timeline jumpiness by setting correct txnId
2021-04-12 09:37:19 +01:00
Michael Telatynski
6bc80577ee
Merge pull request #1661 from janpawellek/janpawellek-fix-addEventListener
...
Fix calling addEventListener if it does not exist
2021-04-12 09:15:19 +01:00
Germain
837764190f
Merge pull request #1655 from matrix-org/gsouquet-persist-unsent-messages
2021-04-09 17:48:01 +01:00
Germain Souquet
61948d70e3
Merge branch 'develop' into gsouquet-persist-unsent-messages
2021-04-09 17:05:19 +01:00
Jan Pawellek
9fb0385694
Fix calling addEventListener if it does not exist
...
Some platforms (e.g. React Native) register global.window, but do not have global.window.addEventListener. In this case, this function should not be called.
2021-04-09 10:18:47 +02:00
Šimon Brandner
193de8d3a9
Merge branch 'feed' of https://github.com/SimonBrandner/matrix-js-sdk into feed
2021-04-08 11:15:07 +02:00
Šimon Brandner
1f2b3512c1
Move SDPStreamMetadataPurpose into callEventTypes.ts
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-04-08 11:14:42 +02:00
Šimon Brandner
ddc5bd3b36
Add prefixes to SDPStreamMetadataPurpose
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-04-08 11:07:53 +02:00
Šimon Brandner
ee828d454a
Rename CallFeedPurpose to SDPStreamMetadataPurpose
...
This is to match MSC3077
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-04-08 11:07:22 +02:00
Šimon Brandner
2916a73f4c
Make selectDesktopCapturerSource optional
2021-04-08 11:01:17 +02:00
Šimon Brandner
ae69af7e70
Merge branch 'develop' into feed
2021-04-07 19:14:17 +02:00
RiotRobot
1c6459fe65
v9.11.0-rc.1
2021-04-07 12:55:25 +01:00
RiotRobot
adaeb42416
Prepare changelog for v9.11.0-rc.1
2021-04-07 12:55:24 +01:00
J. Ryan Stinnett
f1e1daa194
Merge pull request #1657 from matrix-org/jryans/cs-keys-test
...
Only try to cache private keys we know exist
2021-04-06 10:09:04 +01:00
J. Ryan Stinnett
401e89ef78
Only try to cache private keys we know exist
...
This tweaks https://github.com/matrix-org/matrix-js-sdk/pull/1649 to only try
caching private keys locally once we've confirmed they exist first. This is most
likely only an issue in tests, where we sometimes create only some but not all
keys.
2021-04-06 09:49:20 +01:00
Travis Ralston
59e0bd467c
Merge pull request #1654 from SimonBrandner/terminate-screen-share
...
Properly terminate screen-share calls if NoUserMedia
2021-04-05 10:55:02 -06:00
Šimon Brandner
7f4397f8ca
Use getAudioTracks() and getVideoTracks()
...
This is much nicer. Before I hadn't realized this was possible
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-04-05 10:31:27 +02:00
Šimon Brandner
32830b93f1
Rename audioOnly to videoMuted
...
This makes more sense and will match a possible mute events MSC
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-04-04 08:50:27 +02:00
Šimon Brandner
cdc0d5623b
Rename to match MSC3077
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-04-04 08:37:09 +02:00
Šimon Brandner
e78b415832
Add getMember() to CallFeed
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-04-04 08:33:51 +02:00
Šimon Brandner
ff1379fd29
Merge branch 'develop' into feed
2021-04-03 08:35:05 +02:00
David Baker
3820c15ecf
Merge pull request #1652 from matrix-org/dbkr/attended_transfer
...
Attended transfer
2021-04-01 17:34:18 +01:00
Germain Souquet
26ef33e4f3
No this assign
2021-04-01 17:29:21 +01:00
Germain Souquet
0534a4ed1b
prevent removePendingEvent being called when not in detached mode
2021-04-01 17:23:55 +01:00
Germain Souquet
f29a24a915
specify TestClient when testing room model
2021-04-01 15:22:13 +01:00
Germain Souquet
cecbcd941e
Persist unsent messages for subsequent sessions
2021-04-01 10:59:16 +01:00
David Baker
6be99d6397
Terminate the other call too
2021-03-30 12:13:28 +01:00
J. Ryan Stinnett
4e5947af51
Merge pull request #1653 from matrix-org/jryans/cancel-security-key
...
Remove catch handlers in private key retrieval
2021-03-29 17:58:07 +01:00
RiotRobot
4204b2170a
Resetting package fields for development
2021-03-29 13:28:09 +01:00
RiotRobot
0a5ad489b6
Merge branch 'master' into develop
2021-03-29 13:28:08 +01:00
RiotRobot
5de34a5c99
v9.10.0
2021-03-29 13:25:27 +01:00
RiotRobot
08da6b8800
Prepare changelog for v9.10.0
2021-03-29 13:25:27 +01:00
Šimon Brandner
02b283be78
Properly terminate screenshare calls if NoUserMedia
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-03-27 09:13:44 +01:00
J. Ryan Stinnett
10c49c0fd1
Remove catch handlers in private key retrieval
...
This removes some catch blocks originally added by
https://github.com/matrix-org/matrix-js-sdk/pull/1472 so that higher level
operations can handle them as needed.
Part of https://github.com/vector-im/element-web/issues/15584
2021-03-26 17:57:23 +00:00
David Baker
9ecc0f5d95
Terminate calls once we've replaced them
2021-03-26 13:52:23 +00:00
Travis Ralston
972b59b99e
Merge pull request #1651 from DantrazTrev/CallErrorFix
...
Fixed the media fail error on caller's side
2021-03-25 19:05:36 -06:00
David Baker
34bb05bd88
WIP attended transfer
2021-03-25 19:57:20 +00:00
Hubert Chathi
37fb21f726
Merge pull request #1640 from uhoreg/room-history-key-sharing2
...
Add function to share megolm keys for historical messages.
2021-03-25 14:18:12 -04:00
Ayush PS
b42efa4a07
Fixed lint errors
2021-03-25 23:38:18 +05:30
Ayush PS
20b20738a7
Fixed a slight error back to orignal in ScreenShareCall
2021-03-25 23:02:44 +05:30
Ayush PS
b28a191c4e
Fixed the media fail error on caller's side
2021-03-25 22:43:18 +05:30
Hubert Chathi
f92b620434
Merge branch 'develop' into room-history-key-sharing2
2021-03-25 12:24:42 -04:00
RiotRobot
ae6e2cca27
v9.10.0-rc.1
2021-03-25 12:06:34 +00:00
RiotRobot
bd920eef1f
Prepare changelog for v9.10.0-rc.1
2021-03-25 12:06:34 +00:00
J. Ryan Stinnett
bf25cb68da
Merge pull request #1649 from matrix-org/jryans/get-keys-bootstrap-only
...
Cache cross-signing private keys if needed on bootstrap
2021-03-24 15:56:15 +00:00
J. Ryan Stinnett
0b063f6b8b
Cache cross-signing private keys if needed on bootstrap
...
This is a revised version of
https://github.com/matrix-org/matrix-js-sdk/pull/1472 which was previously
reverted for causing security prompts to appear on device list sync. In this
version, we only allow private key requests (which are likely to trigger user
dialogs) if we are coming from the bootstrap path.
This allows sessions that have already synced cross-signing public keys but
never got the private keys for some reason to make forward progress when e.g.
the user triggers bootstrap from security settings.
2021-03-24 11:48:45 +00:00
Travis Ralston
ed6d4e5f6c
Merge pull request #1647 from SimonBrandner/dont-send-hangup
...
Don't send m.call.hangup if m.call.invite wasn't sent either
2021-03-22 00:42:04 -06:00
Travis Ralston
accfa325b5
Merge pull request #1641 from NicolaiSoeborg/fix-registerGuest
...
docs: registerGuest()
2021-03-21 20:37:49 -06:00
Šimon Brandner
b6ef8d95cd
Don't send hangup if invite wasn't sent
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-03-21 21:29:00 +01:00
Travis Ralston
c1144e3810
Merge pull request #1639 from Johennes/feature/chunk-device-keys
...
Download device keys in chunks of 250
2021-03-18 13:17:15 -06:00
Johannes Marbach
8663fd402b
Download device keys in chunks of 250
...
Depending on the number of users in the request, the server might
overload. To prevent this, the download is broken into chunks of
250 users each. Additionally, no more than 3 requests are kicked off
at the same time to avoid running into rate limiting. Responses are
processed once all chunks have been downloaded.
Fixes : #1619
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org >
2021-03-17 20:56:25 +01:00
Šimon Brandner
d8134aa168
Merge branch 'feed' into feed-audio
2021-03-17 16:16:33 +01:00
Šimon Brandner
702b3e8473
Merge branch 'develop' into feed
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-03-17 16:16:07 +01:00
David Baker
f34052fd31
Merge pull request #1646 from matrix-org/dbkr/more_call_fixes
...
More VoIP connectivity fixes
2021-03-17 15:00:09 +00:00
David Baker
27d75a269f
unintentional comment
2021-03-16 19:18:45 +00:00
David Baker
d208a7fc5f
Remove unintentionally committed stuff
2021-03-16 19:17:04 +00:00
David Baker
702e16e3df
More VoIP connectivity fixes
...
* Don't ignore other candidates when we see a null one (continue
rather than return)
* await on addICECandidate()
* Don't add ice candidates until we've set a remote description
* More & better logging
2021-03-16 19:13:03 +00:00
Hubert Chathi
6381018658
add jsdoc and implementation for memory crypto store
2021-03-16 13:52:05 -04:00
Travis Ralston
12050b14f0
Merge pull request #1644 from SimonBrandner/fix-optional
...
Make selectDesktopCapturerSource param optional
2021-03-15 21:12:03 -06:00
Hubert Chathi
1c191b2278
use new terminology and field name from MSC
2021-03-15 22:49:43 -04:00
Nicolai Søborg
2d4a4f1736
docs: registerGuest
2021-03-15 22:46:43 +00:00
RiotRobot
cd38fb9b4c
Resetting package fields for development
2021-03-15 14:34:56 +00:00
RiotRobot
7941b16ec4
Merge branch 'master' into develop
2021-03-15 14:34:56 +00:00
RiotRobot
3ff517e76e
v9.9.0
2021-03-15 14:31:58 +00:00
RiotRobot
9559b26310
Prepare changelog for v9.9.0
2021-03-15 14:31:57 +00:00
Šimon Brandner
56ea4b8741
Make selectDesktopCapturerSource param optional
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-03-13 15:03:36 +01:00
Hubert Chathi
a489691151
various fixes
2021-03-11 17:30:05 -05:00
Nicolai Søborg
6dabfcda6f
setGuest(true) when registerGuest()
...
Signed-off-by: Nicolai Søborg <git@xn--sb-lka.org >
2021-03-11 22:39:51 +01:00
J. Ryan Stinnett
0b7b35f800
Merge pull request #1632 from matrix-org/matthew/rework-cross-signing-login
...
Expose APIs needed for reworked cross-signing login flow
2021-03-11 12:54:18 +00:00
Hubert Chathi
0bfcb5071d
fix test, lint
2021-03-10 20:04:34 -05:00
Hubert Chathi
ceb162eb01
initial work on room history key sharing, take 2
2021-03-10 19:51:22 -05:00
RiotRobot
0ffdf7c0f1
v9.9.0-rc.1
2021-03-10 17:21:50 +00:00
RiotRobot
13b6db8eb4
Prepare changelog for v9.9.0-rc.1
2021-03-10 17:21:49 +00:00
J. Ryan Stinnett
481acb2a1a
Merge pull request #1638 from matrix-org/jryans/rm-olm-profiling
...
Remove detailed Olm session logging
2021-03-10 12:44:22 +00:00
J. Ryan Stinnett
683092140d
Remove OTK claim timeout logging
2021-03-10 12:43:45 +00:00
J. Ryan Stinnett
1bb8c2d1a5
Remove detailed Olm session logging
...
Now that we understand the Olm session deadlock, we shouldn't need this detailed
per-session logging.
Fixes https://github.com/vector-im/element-web/issues/16647
2021-03-10 12:43:45 +00:00
J. Ryan Stinnett
60fd3b0786
Remove extra space in log message
2021-03-10 11:25:44 +00:00
Šimon Brandner
b307a177f4
Remove handling of audio from MatrixCall
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-03-10 12:24:48 +01:00
Šimon Brandner
059430bd0a
Doc public methods
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-03-10 12:21:15 +01:00
Šimon Brandner
530b60cbc2
Make MatrixCall use CallFeed
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-03-10 12:21:07 +01:00
J. Ryan Stinnett
cd4abc4e9b
Disable crypto transaction profiling
2021-03-10 11:05:17 +00:00
Michael Telatynski
e6a21cc487
Merge pull request #1637 from matrix-org/t3chguy/spaces4.5
...
Add space summary suggested only param
2021-03-10 10:55:27 +00:00
Šimon Brandner
ba8577f268
Add CallFeed class
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-03-10 08:43:01 +01:00
David Baker
6c5fc153bf
Merge pull request #1634 from matrix-org/dbkr/check_turn_interval
...
Check TURN servers periodically, and at start of calls
2021-03-09 17:06:02 +00:00
David Baker
07f15b41a2
Don't start the timer if voip not supported
2021-03-09 14:39:21 +00:00
David Baker
8375638d76
Fix tests
...
Bit of a re-organisation so a peerconnection exists when the tests
go to mock things out. placeCall methods return promises to make this
possible.
2021-03-09 14:09:55 +00:00
J. Ryan Stinnett
bed7543b46
Merge pull request #1624 from robintown/invite-reasons
...
Support sending invite reasons
2021-03-09 11:44:04 +00:00
Travis Ralston
dc55236263
Merge pull request #1636 from matrix-org/dependabot/npm_and_yarn/elliptic-6.5.4
...
Bump elliptic from 6.5.3 to 6.5.4
2021-03-08 18:23:50 -07:00
dependabot[bot]
5f3427c5d1
Bump elliptic from 6.5.3 to 6.5.4
...
Bumps [elliptic](https://github.com/indutny/elliptic ) from 6.5.3 to 6.5.4.
- [Release notes](https://github.com/indutny/elliptic/releases )
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.3...v6.5.4 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-03-09 01:23:08 +00:00
Travis Ralston
66e5af185d
Merge pull request #1635 from matrix-org/travis/media-customization
...
Add a function to get a room's MXC URI
2021-03-08 18:23:00 -07:00
Travis Ralston
0ff611e033
Enum and linter
2021-03-08 18:16:39 -07:00
Travis Ralston
737cadaabc
Add a function to get a room's MXC URI
...
This matches the RoomMember function of the same name.
2021-03-08 18:13:14 -07:00
Matthew Hodgson
9fb2fbaeec
factor out getDehydratedDevice
2021-03-09 00:09:22 +00:00
David Baker
51e817a3a2
This is in ms, not seconds
2021-03-08 18:54:50 +00:00
David Baker
59c93b59bf
Check TURN servers periodically, and at start of calls
...
Hopefully this should make our turn-credential checking code a bit
more robust (and possibly fix a seconds / ms mismatch).
2021-03-08 18:49:25 +00:00
David Baker
c18ef051fc
Merge pull request #1633 from matrix-org/dbkr/stop_streams_if_call_ended
...
Stop streams if the call has ended
2021-03-08 17:01:31 +00:00
David Baker
1ac5c9acbd
Stop streams if the call has ended
...
When we get user media, don't forget to close the streams if the
call's ended by the time we got media.
2021-03-08 16:55:48 +00:00
J. Ryan Stinnett
a034ca171e
Merge pull request #1631 from SimonBrandner/remove-export
...
Remove export keyword from global.d.ts
2021-03-08 14:11:37 +00:00
Matthew Hodgson
977682d37f
fix lint
2021-03-08 09:24:25 +00:00
Matthew Hodgson
0bafe263d7
fix lint
2021-03-08 05:05:14 +00:00
Matthew Hodgson
1a8fced80e
Merge branch 'develop' into matthew/rework-cross-signing-login
2021-03-08 04:59:40 +00:00
Matthew Hodgson
1c4d0b5e99
expose getDevice API
2021-03-08 04:59:29 +00:00
Matthew Hodgson
844a2b457c
expose getDehydratedDevice API
2021-03-08 04:59:19 +00:00
Matthew Hodgson
ccf06f2216
don't cancel ourselves when selecting a self-verification partner
2021-03-08 04:58:55 +00:00
Šimon Brandner
f630a9f297
Remove export
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-03-06 16:14:12 +01:00
Michael Telatynski
2f71c93b53
Add space summary suggested only param
2021-03-05 16:12:39 +00:00
J. Ryan Stinnett
92032a17a8
Merge pull request #1445 from florianjacob/patch-1
...
Fix IndexedDB store creation example
2021-03-04 16:28:05 +00:00
David Baker
e531456d42
Merge pull request #1613 from SimonBrandner/constraint-cleanup
...
An attempt to cleanup how constraints are handled in calls
2021-03-03 15:03:53 +00:00
Šimon Brandner
f0b2d2fe4d
Null-check screenshareConstraints
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-03-03 15:38:49 +01:00
Šimon Brandner
427500220d
Remove AudioVideo ConstraintsType
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-03-03 15:35:02 +01:00
Šimon Brandner
32e19ead74
Merge branch 'develop' into constraint-cleanup
2021-03-03 15:30:46 +01:00
J. Ryan Stinnett
d11adb6f43
Merge pull request #1628 from matrix-org/jryans/opt-display-name
...
Extract display name patterns to constants
2021-03-03 11:44:30 +00:00
Travis Ralston
f6155a50f6
Merge pull request #1630 from matrix-org/dependabot/npm_and_yarn/pug-code-gen-2.0.3
...
Bump pug-code-gen from 2.0.2 to 2.0.3
2021-03-02 21:55:39 -07:00
dependabot[bot]
4efee9445d
Bump pug-code-gen from 2.0.2 to 2.0.3
...
Bumps [pug-code-gen](https://github.com/pugjs/pug ) from 2.0.2 to 2.0.3.
- [Release notes](https://github.com/pugjs/pug/releases )
- [Commits](https://github.com/pugjs/pug/compare/pug-code-gen@2.0.2...pug@2.0.3 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-03-03 03:35:37 +00:00
J. Ryan Stinnett
20746a433f
Extract display name patterns to constants
...
This changes to constant patterns for calculating display names, which cuts out
~18% of the time spent and reduces GC pressure as well.
2021-03-02 17:52:57 +00:00
J. Ryan Stinnett
31dacc4206
Merge pull request #1627 from matrix-org/jryans/olm-session-deadlock
...
Avoid deadlocks when ensuring Olm sessions for devices
2021-03-02 14:35:04 +00:00
J. Ryan Stinnett
88e5c59a85
Fix lint warning on OTK result variable
2021-03-02 13:03:12 +00:00
J. Ryan Stinnett
cf74920b36
Remove redundant Olm session in progress deletion
...
This removes extra steps that duplicated deletion of an in progress Olm session.
Resolving the promise handles removing the session from the in progress set, so
there's no need to do it again. There's also no need to delete from
`resolveSession`, as it's okay to resolve a promise multiple times.
2021-03-02 12:58:09 +00:00
J. Ryan Stinnett
972c900b58
Remove unused support for rejecting in progress Olm sessions
...
This removes the unused `reject` path for in progress Olm sessions to simplify
understanding the code.
2021-03-02 12:55:43 +00:00
J. Ryan Stinnett
12d5fd79f7
Avoid deadlocks when ensuring Olm sessions for devices
...
This reworks tracking the Olm sessions a particular task is updating to avoid
deadlocks. By ensuring we synchronously mark all sessions a task cares about as
in progress from the start, we know that no other tasks will own updating a
session in common, which avoids deadlocks across multiple tasks that might be
working on a shared set of devices.
Fixes https://github.com/vector-im/element-web/issues/16194
2021-03-02 12:50:49 +00:00
J. Ryan Stinnett
a29f6979b2
Merge pull request #1626 from matrix-org/jryans/replacement-senders
...
Filter out edits from other senders in history
2021-03-02 12:33:21 +00:00
J. Ryan Stinnett
3a7146c77b
Only log claim timeouts when a time was provided
...
This avoids logging immediately on various code paths (including tests) where no
timeout value is supplied.
2021-03-02 12:22:58 +00:00
J. Ryan Stinnett
b178d8f629
Filter out edits from other senders in history
...
We currently don't support edits from other senders, but the server may not
filter them, so we filter them here on the client.
2021-03-02 12:15:27 +00:00
Šimon Brandner
0c94ee62a3
Pass in selectDesktopCapturerSource()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-03-02 13:00:57 +01:00
Šimon Brandner
e7562898cd
Add getScreenshareContraints()
...
This is nicer since we avoid some async functions
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-03-02 12:58:45 +01:00
RiotRobot
fb73ab6878
Resetting package fields for development
2021-03-01 12:48:30 +00:00
RiotRobot
38f978791d
Merge branch 'master' into develop
2021-03-01 12:48:30 +00:00
RiotRobot
5dd60de57d
v9.8.0
2021-03-01 12:44:55 +00:00
RiotRobot
5efbfc2dba
Prepare changelog for v9.8.0
2021-03-01 12:44:54 +00:00
J. Ryan Stinnett
fcd1dbad89
Merge pull request #1618 from robintown/fix-content-helpers-export
...
Fix ContentHelpers export
2021-03-01 11:13:10 +00:00
J. Ryan Stinnett
ad521bf4c2
Merge pull request #1621 from matrix-org/jryans/megolm-logs-2021-02-26
...
Add logging to in progress Olm sessions
2021-02-28 17:52:24 +00:00
J. Ryan Stinnett
8152fa44e0
Add more logging scopes to session IDs
...
This uses prefix chaining to correlate several scopes together.
2021-02-28 17:15:07 +00:00
J. Ryan Stinnett
e217bf9e37
Enable prefixed loggers to chain
2021-02-28 17:15:07 +00:00
David Baker
bfad21f811
Merge pull request #1623 from matrix-org/dbkr/ice_candidate_buffer
...
Don't ignore ICE candidates received before offer/answer
2021-02-27 15:11:26 +00:00
David Baker
81e68abce3
Merge pull request #1622 from matrix-org/dbkr/candidate_retries
...
Better handling of send failures on VoIP events
2021-02-27 15:11:00 +00:00
David Baker
7963bb352d
Merge pull request #1620 from matrix-org/dbkr/log_turn_cred_expiry
...
Log when turn creds expire
2021-02-27 15:09:54 +00:00
Michael Telatynski
14d3882059
Merge pull request #1563 from matrix-org/t3chguy/spaces
...
Initial Spaces [MSC1772] support
2021-02-26 22:08:09 +00:00
Robin Townsend
dede508e89
Support sending invite reasons
...
Added as the final argument to `invite` in order to keep backwards
compatibility.
Signed-off-by: Robin Townsend <robin@robin.town >
2021-02-26 16:46:18 -05:00
David Baker
ea39b69f65
Don't ignore ICE candidates received before offer/answer
...
The main bug here was a race on the callee side because we await-ed
on setRemoteDescription before setting the opponent party ID, and
while we were await-ing, the callEventHandler could give us candidate
events which we'd duly ignore because we thought the party ID didn't
match.
This also meant that any candidates that arrived before the answer
would have been ignored. Save these up by party ID and then add the
ones from the party ID that we pick once the answer comes in.
Also fix the confusion on party IDs where we weren't sure whether
we hadn't picked an opponent or we'd picked an opponent without a
party ID. It's now undefined for the former and null for the latter,
as it claims to be in the comment.
2021-02-26 21:25:52 +00:00
David Baker
eafecd36bc
Better handling of send failures on VoIP events
...
Don't leave candidate message sin the queue, abort if we fail to
send the invite.
2021-02-26 18:42:05 +00:00
J. Ryan Stinnett
198c9a2507
Add logging to in progress Olm sessions
...
It seems like this might be where
https://github.com/vector-im/element-web/issues/16194 is deadlocking.
2021-02-26 17:27:06 +00:00
David Baker
d07563013b
Log when turn creds expire
2021-02-26 14:47:27 +00:00
Michael Telatynski
9e967832cd
Update space summary API unstable prefix
2021-02-26 10:37:09 +00:00
Michael Telatynski
bfe1987cd9
Add Spaces event types from MSC1772
2021-02-26 10:35:02 +00:00
Robin Townsend
1045538f1f
Fix ContentHelpers export
...
This was previously exporting a promise, since it called the import
function manually but didn't await the result. However, since we have
Babel we can just use the new export … as … from syntax instead.
Signed-off-by: Robin Townsend <robin@robin.town >
2021-02-25 14:41:48 -05:00
J. Ryan Stinnett
fccf08edcf
Merge pull request #1617 from matrix-org/jryans/crypto-store-logging
...
Add logging to crypto store transactions
2021-02-25 16:58:45 +00:00
J. Ryan Stinnett
f43fe366b5
Add logging to crypto store transactions
...
We churn through a huge number of crypto store transactions during startup,
which may be the cause of the symptoms in
https://github.com/vector-im/element-web/issues/16194 .
2021-02-25 16:49:49 +00:00
Michael Telatynski
0f75f2ef9c
Add base API for Space Summary MSC2946
2021-02-25 13:12:22 +00:00
Michael Telatynski
2cdc68f9c3
Merge pull request #1610 from matrix-org/t3chguy/spaces2
...
Room helper for getting type and checking if it is a space room
2021-02-25 11:30:49 +00:00
RiotRobot
6a7d58e22e
v9.8.0-rc.1
2021-02-24 17:24:17 +00:00
RiotRobot
203829c1cd
Prepare changelog for v9.8.0-rc.1
2021-02-24 17:24:16 +00:00
J. Ryan Stinnett
b55e6c4ef0
Merge pull request #1615 from matrix-org/jryans/megolm-logs-2021-02-22
...
Optimise prefixed logger
2021-02-23 17:46:57 +00:00
J. Ryan Stinnett
8d779e8aec
Optimise prefixed logger
...
Tweak the prefixed logger to only do the setup work the first time.
2021-02-23 16:32:10 +00:00
J. Ryan Stinnett
dd1d48f688
Merge pull request #1614 from matrix-org/jryans/megolm-logs-2021-02-22
...
Add debug logs to encryption prep, take 3
2021-02-23 16:07:39 +00:00
J. Ryan Stinnett
8d14dc9ee3
Add debug logs to encryption prep, take 3
...
This continues adding more logs to work out the root cause of
https://github.com/vector-im/element-web/issues/16194 .
Somehow, we're getting stuck while sharing keys with new sessions.
2021-02-23 14:22:44 +00:00
Šimon Brandner
5849ea8e63
Add AudioVideo constraint type
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-02-23 12:25:20 +01:00
Šimon Brandner
20afebf339
Set video to true
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-02-23 12:23:49 +01:00
Šimon Brandner
20eaba191e
Simplifie placeScreenSharingCall()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-02-23 11:12:16 +01:00
Šimon Brandner
ba58d3c544
Add screenshare type to getUserMediaContraints()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-02-23 10:47:43 +01:00
David Baker
a8b9d8e3ae
Merge pull request #1612 from matrix-org/dbkr/jitsi_conference_captialised
...
Add functions for upper & lowercase random strings
2021-02-22 17:33:35 +00:00
David Baker
83d1e61b2f
Add functions for upper & lowercase random strings
2021-02-22 16:47:16 +00:00
Michael Telatynski
8e0fc8d460
Room helper for getting type and checking if it is a space room
2021-02-19 14:21:22 +00:00
Michael Telatynski
f547fa732f
Merge pull request #1609 from matrix-org/t3chguy/spaces1
...
Room helpers for invite permissions and join rules
2021-02-18 18:02:31 +00:00
Michael Telatynski
e24b1519a4
Merge pull request #1606 from SimonBrandner/fix-log
...
Fixed wording in "Adding video track with id" log
2021-02-18 18:00:28 +00:00
Michael Telatynski
3028fe9c87
Improve room documentation
2021-02-18 14:52:32 +00:00
Michael Telatynski
0b970b05b6
Wire up helpers for checking if a user can invite to a room and getting its join rule
2021-02-18 14:52:23 +00:00
Šimon Brandner
f7bfb1e49e
Fixed log (audio -> video)
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-02-17 20:51:43 +01:00
J. Ryan Stinnett
371ca009e9
Merge pull request #1605 from matrix-org/jryans/more-megolm-logging
...
Add more debug logs to encryption prep
2021-02-17 13:56:46 +00:00
J. Ryan Stinnett
4a0f848551
Add more debug logs to encryption prep
...
This continues work from https://github.com/matrix-org/matrix-js-sdk/pull/1580
and adds more logging, including specialised logging for a potential cause of
https://github.com/vector-im/element-web/issues/16194 .
So far, it seems clear that something's going wrong in the "sharing keys with
new Olm session" step.
2021-02-17 13:45:26 +00:00
David Baker
5e8b7b2a62
Merge pull request #1604 from matrix-org/dbkr/ice_candidate_pool_size
...
Add option to set ice candidate pool size
2021-02-16 16:01:53 +00:00
David Baker
0f27b703bd
Should be optional
2021-02-16 15:51:10 +00:00
David Baker
61e19c30cb
Add option to set ice candidate pool size
2021-02-16 15:47:48 +00:00
RiotRobot
c82bc35202
Resetting package fields for development
2021-02-16 10:58:15 +00:00
RiotRobot
65934227c3
Merge branch 'master' into develop
2021-02-16 10:58:15 +00:00
RiotRobot
7519becd43
v9.7.0
2021-02-16 10:55:42 +00:00
RiotRobot
fe83c15bc6
Prepare changelog for v9.7.0
2021-02-16 10:55:41 +00:00
J. Ryan Stinnett
07e6b47fa7
Merge pull request #1601 from SimonBrandner/cancel-call-if-no-source
...
Cancel call if no source was selected
2021-02-11 12:29:57 +00:00
RiotRobot
b026e1c2f7
v9.7.0-rc.1
2021-02-10 15:54:02 +00:00
RiotRobot
f8194d9418
Prepare changelog for v9.7.0-rc.1
2021-02-10 15:54:01 +00:00
Šimon Brandner
1ecd7f274f
Cancel call if no source was selected
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-02-10 07:49:03 +01:00
David Baker
66bf0ec7af
Merge pull request #1600 from SimonBrandner/handle-undefined-peerconn
...
Handle undefined peerconn
2021-02-09 16:29:46 +00:00
Šimon Brandner
1b22df2b7b
Handle undefined peerconn
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-02-09 14:42:34 +01:00
David Baker
9f993f1f67
Merge pull request #1599 from matrix-org/dbkr/reemitter_dont_throw_if_no_error_handler
...
ReEmitter: Don't throw if no error handler is attached
2021-02-08 19:44:03 +00:00
David Baker
975518bd88
ReEmitter: Don't throw if no error handler is attached
...
As hopefully explained by lengthy comment
Fixes https://github.com/matrix-org/matrix-js-sdk/issues/1569
2021-02-08 19:37:17 +00:00
David Baker
66a863456c
Merge pull request #1598 from matrix-org/dbkr/reemitter_ts
...
Convert ReEmitter to TS
2021-02-08 19:15:08 +00:00
David Baker
91290c0d25
Actually add the test
2021-02-08 19:09:32 +00:00
David Baker
8a23e89c87
Convert ReEmitter to TS
...
And also add a test so I can be confident it's actually doing the
same thing.
NB. There was some logic there previously to reduce the number of
bound functions that had to be kept around, but it subsequently
started adding the source object as the last arg, at which point
there's now one bound function in memory per re-emitted event name
(plus the previous per-event-name handlers). This reduces it so it's
just one per re-emitted event name, so still could be quite a few,
but fewer than before.
2021-02-08 19:04:23 +00:00
Michael Telatynski
9e9cf85ba1
Merge pull request #1597 from rherrmann/patch-1
...
Fix typo in main readme
2021-02-08 17:18:29 +00:00
David Baker
3dd365bbea
Merge pull request #1596 from matrix-org/dbkr/rogue_plus
...
Remove rogue plus character
2021-02-08 16:49:47 +00:00
Rüdiger Herrmann
33a824b980
Fix typo in main readme
...
Signed-off-by: Rüdiger Herrmann <ruediger.herrmann@gmx.de >
2021-02-08 17:41:48 +01:00
David Baker
8571884304
Remove rogue plus character
...
Apparently this is perfectly valid javascript and somehow casts
this.callId to a number... possibly it's ignoring the whitespace
and trating it as `++this.callId`?
2021-02-08 16:27:38 +00:00
David Baker
4f1067e66c
Merge pull request #1595 from matrix-org/dbkr/call_id_nan
...
Fix call ID NaN
2021-02-08 16:18:01 +00:00
David Baker
7b5b851db0
Fix call ID NaN
...
We were seeing call IDs of NaN in the wild somehow... hopefully this
should make sure they're all actually strings.
2021-02-08 16:12:39 +00:00
J. Ryan Stinnett
ed0be0cf84
Merge pull request #1594 from matrix-org/jryans/electron-type-merge
...
Fix Electron type merging
2021-02-08 15:25:14 +00:00
J. Ryan Stinnett
d3775e5cb1
Fix Electron type merging
...
This changes to an interface for Electron types so that other layers can merge
in further APIs as needed.
2021-02-08 15:13:00 +00:00
J. Ryan Stinnett
2c8f658810
Merge pull request #1593 from SimonBrandner/fix-browser-screens-share
...
Fix browser screen share
2021-02-08 14:56:57 +00:00
Šimon Brandner
5c52f5f579
Fix browser screen share
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-02-08 15:48:30 +01:00
David Baker
0a81bb3fdc
Merge pull request #1570 from SimonBrandner/fix-screen-sharing
...
Fix desktop Matrix screen sharing
2021-02-08 13:54:38 +00:00
J. Ryan Stinnett
f33196bc51
Merge pull request #1591 from matrix-org/jryans/pos-wait
...
Guard against confused server retry times
2021-02-05 17:42:19 +00:00
J. Ryan Stinnett
6beb90a835
Guard against confused server retry times
...
If a server happens to give a negative retry time, this would be passed to
`setTimeout`, and browsers interpret negative values as `0`, meaning "as soon as
possible", so we then start looping infinitely with no delay.
2021-02-05 17:37:40 +00:00
J. Ryan Stinnett
9d45e6acd6
Merge pull request #1589 from SimonBrandner/decrypt-redaction-reason
...
Decrypt redaction events
2021-02-04 16:10:59 +00:00
Šimon Brandner
516c464458
Call decryptEvent recursively
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-02-04 16:59:26 +01:00
RiotRobot
6ad3fb16b3
Resetting package fields for development
2021-02-03 12:01:13 +00:00
RiotRobot
277fdd9b8c
Merge branch 'master' into develop
2021-02-03 12:01:13 +00:00
RiotRobot
7d56993b39
v9.6.0
2021-02-03 11:58:27 +00:00
RiotRobot
4e1442fcf6
Prepare changelog for v9.6.0
2021-02-03 11:58:27 +00:00
Michael Telatynski
4777bf3e75
Merge pull request #1588 from matrix-org/t3chguy/cherrypick/1587
...
[Release] Fix edge cases with peeking where a room is re-peeked
2021-02-01 13:01:01 +00:00
Šimon Brandner
14cd37ec56
Decrypt redaction events
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-02-01 13:52:56 +01:00
Michael Telatynski
8bcdfd50c9
Fix edge cases with peeking where a room is re-peeked
...
but two Room instances are created and things get duplicated
2021-02-01 12:30:04 +00:00
Michael Telatynski
6776df8e80
Merge pull request #1587 from matrix-org/t3chguy/peeking
...
Fix edge cases with peeking where a room is re-peeked
2021-02-01 12:26:35 +00:00
Michael Telatynski
fbec079c9b
Fix edge cases with peeking where a room is re-peeked
...
but two Room instances are created and things get duplicated
2021-01-31 16:08:03 +00:00
RiotRobot
93f6bc3780
v9.6.0-rc.1
2021-01-29 17:20:04 +00:00
RiotRobot
dde8f23cc3
Prepare changelog for v9.6.0-rc.1
2021-01-29 17:20:03 +00:00
RiotRobot
7cfbd0da95
Merge branch 'master' into develop
2021-01-26 11:42:21 +00:00
RiotRobot
a27ddfaaaf
v9.5.1
2021-01-26 11:39:39 +00:00
RiotRobot
b53f616015
Prepare changelog for v9.5.1
2021-01-26 11:39:38 +00:00
J. Ryan Stinnett
22dc175879
Merge pull request #1585 from matrix-org/dbkr/voip-v0-release
...
[Release] Fix compatibility with v0 calls
2021-01-26 11:24:07 +00:00
David Baker
5f23e4699c
We were using undefined here too
2021-01-26 11:17:44 +00:00
David Baker
a1bd258a7b
Remove unintentional commit
2021-01-26 11:17:44 +00:00
David Baker
39a9c54589
Fix compatability with v0 calls
...
https://github.com/matrix-org/matrix-js-sdk/pull/1567 introduced a
bug where we'd leave opponentPartyId undefined, but we compared it
to null later when testing for its presence.
Fixes https://github.com/vector-im/element-web/issues/16239
2021-01-26 11:17:44 +00:00
David Baker
5f68370e07
Merge pull request #1584 from matrix-org/dbkr/callstats
...
Add support for getting call stats
2021-01-26 10:53:53 +00:00
David Baker
dae2de703d
Add support for getting call stats
...
Also add a few 'public' annotations
2021-01-26 09:40:20 +00:00
David Baker
fa19c40868
Merge pull request #1583 from matrix-org/dbkr/fix_v0_compat
...
Fix compatibility with v0 calls
2021-01-25 17:29:59 +00:00
David Baker
1df69d259a
We were using undefined here too
2021-01-25 16:34:28 +00:00
David Baker
90dda0ca68
Remove unintentional commit
2021-01-25 16:13:13 +00:00
David Baker
e2d138cac6
Fix compatability with v0 calls
...
https://github.com/matrix-org/matrix-js-sdk/pull/1567 introduced a
bug where we'd leave opponentPartyId undefined, but we compared it
to null later when testing for its presence.
Fixes https://github.com/vector-im/element-web/issues/16239
2021-01-25 16:09:39 +00:00
J. Ryan Stinnett
15f968d5f8
Merge pull request #1582 from matrix-org/jryans/upgrade-deps-2021-01
...
Upgrade deps 2021-01
2021-01-22 10:16:41 +00:00
Šimon Brandner
4a3b68de8f
Merge branch 'develop' into fix-screen-sharing
2021-01-21 19:15:33 +01:00
David Baker
f6aec7f763
Merge pull request #1581 from matrix-org/dbkr/log_the_call_id
...
Log the call ID when logging that we've received VoIP events
2021-01-21 17:59:49 +00:00
J. Ryan Stinnett
212b6c3a0f
Resolve linting errors after upgrades
2021-01-20 13:54:45 +00:00
J. Ryan Stinnett
820256d451
Nested upgrades via yarn upgrade
2021-01-20 11:07:11 +00:00
J. Ryan Stinnett
3aba538db3
Update to latest deps
2021-01-20 11:05:17 +00:00
David Baker
4820cf8cac
Log call ID here too
2021-01-19 19:28:08 +00:00
David Baker
c289effba0
Log the call ID when logging that we've received VoIP events
...
Should make the logs a bit clearer
2021-01-19 18:11:41 +00:00
David Baker
3edccf496a
Merge pull request #1579 from matrix-org/dbkr/foxes_dont_like_to_be_held
...
Fix extra negotiate message in Firefox
2021-01-19 17:51:35 +00:00
J. Ryan Stinnett
97b4171b3e
Merge pull request #1580 from matrix-org/jryans/debug-encryption-prep
...
Add debug logs to encryption prep
2021-01-19 15:47:34 +00:00
J. Ryan Stinnett
4a073a7ba5
Fix lint
2021-01-19 15:36:08 +00:00
J. Ryan Stinnett
9f275d57a9
Add debug logs to encryption prep
...
This extra debug logs may help isolate the cause of
https://github.com/vector-im/element-web/issues/16194 .
These changes also fix a related (but most likely different) failure mode: if a
failure occurred in the `encryptionPreparation` async task, we would skip trying
to prepare in all future attempts for that room. This change ensures prep
failures are logged and we resume prep attempts on the next call from the
application.
2021-01-19 15:28:28 +00:00
David Baker
d23bbaeb06
Fix extra negotiate message in Firefox
...
Hopefully explained by the comments: Firefox sees that it's been
put on hold and tries to negotiate itself off hold again.
Fixes https://github.com/vector-im/element-web/issues/16190
2021-01-19 12:25:36 +00:00
J. Ryan Stinnett
c64f7a9ec4
Merge pull request #1578 from tzyl/tzyl/get-presence-endpoint
...
Expose getPresence endpoint
2021-01-19 11:03:02 +00:00
RiotRobot
214a9df382
Resetting package fields for development
2021-01-18 15:06:36 +00:00
RiotRobot
90f6620f1e
Merge branch 'master' into develop
2021-01-18 15:06:36 +00:00
RiotRobot
45f3a2f909
v9.5.0
2021-01-18 15:04:00 +00:00
RiotRobot
5904378170
Prepare changelog for v9.5.0
2021-01-18 15:03:59 +00:00
tzyl
f6e8048d9e
Expose getPresence endpoint
2021-01-18 10:17:46 +00:00
Hubert Chathi
5afca17d27
Merge pull request #1577 from uhoreg/always_queue_backup
...
Queue keys for backup even if backup isn't enabled yet
2021-01-15 12:28:06 -05:00
J. Ryan Stinnett
2d7f5ae279
Merge pull request #1576 from matrix-org/jryans/forbidden-turn
...
Stop retrying TURN access when forbidden
2021-01-15 10:06:18 +00:00
Hubert Chathi
458384d658
queue keys for backup even if backup isn't enabled yet
...
We may not have managed to set up the backup yet when we get keys. So we should
unconditionally queue up the keys for backup, so that when the backup is set up,
they will be sent instead of dropped.
2021-01-14 19:55:02 -05:00
J. Ryan Stinnett
159b98132d
Stop retrying TURN access when forbidden
...
If we're not allowed to have TURN access, there's no reason to ask in a loop.
2021-01-14 17:49:15 +00:00
Šimon Brandner
349bb2730a
Update thumbnails
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-01-14 12:44:50 +01:00
Šimon Brandner
c13813348d
Merge branch 'develop' into fix-screen-sharing
2021-01-14 08:35:58 +01:00
Šimon Brandner
26e70d6b30
Use contextBridge
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-01-14 08:34:46 +01:00
David Baker
f6d3b50b08
Merge pull request #1573 from matrix-org/dbkr/dtmf
...
Add DTMF sending support
2021-01-13 13:07:18 +00:00
RiotRobot
50ee489079
v9.5.0-rc.1
2021-01-13 12:54:37 +00:00
RiotRobot
b60e5f40ab
Prepare changelog for v9.5.0-rc.1
2021-01-13 12:54:36 +00:00
David Baker
5b1fdb7b37
Typo
...
Co-authored-by: J. Ryan Stinnett <jryans@gmail.com >
2021-01-13 11:37:30 +00:00
David Baker
65d4015300
Merge pull request #1574 from matrix-org/dbkr/dont_log_on_no_webrtc
...
Don't log if no WebRTC
2021-01-12 18:03:27 +00:00
David Baker
b692cd109e
Don't log if no WebRTC
...
as hopefully explained in comment
2021-01-12 17:58:35 +00:00
Will Hunt
0f90f055ba
Merge pull request #1417 from matrix-org/hs/shared-rooms-api
...
Add _unstable_getSharedRooms
2021-01-11 22:38:56 +00:00
J. Ryan Stinnett
28d5ce288c
Merge pull request #1568 from matrix-org/dependabot/npm_and_yarn/node-notifier-8.0.1
...
Bump node-notifier from 8.0.0 to 8.0.1
2021-01-11 13:12:59 +00:00
Šimon Brandner
c701bf279f
Merge branch 'develop' into fix-screen-sharing
2021-01-05 20:48:34 +01:00
David Baker
6039066e7f
Merge pull request #1567 from matrix-org/dbkr/ignore_party_id_v0_3
...
Ignore party ID if opponent is v0
2021-01-05 17:23:15 +00:00
David Baker
c9a2f8b170
Merge pull request #1566 from matrix-org/dbkr/call_transfer_2
...
Basic call transfer initiation support
2021-01-05 17:22:08 +00:00
David Baker
b34a36d853
Rename other supportsTransfers
2021-01-05 17:11:49 +00:00
David Baker
f8f76f6806
Add DTMF sending support
2021-01-04 19:58:12 +00:00
David Baker
e25ae546fc
Merge pull request #1572 from matrix-org/dbkr/room_version_6
...
Room version 6 is now a thing
2021-01-04 15:23:01 +00:00
David Baker
5b73bf3e5d
Room version 6 is now a thing
...
MSC2788 (https://github.com/matrix-org/matrix-doc/pull/2788 ) etc
2021-01-04 15:16:09 +00:00
Hubert Chathi
c16b093bd7
Merge pull request #1571 from Sorunome/soru/receive-real-key-later
...
Store keys with same index but better trust level
2020-12-30 11:13:30 -05:00
Sorunome
e406f32386
Store keys with same index but better trust level
2020-12-29 17:02:01 +01:00
Šimon Brandner
c4e7c149a4
Type cleanup
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2020-12-26 18:09:38 +01:00
Šimon Brandner
f91edfabbb
Change formatting
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2020-12-26 16:58:08 +01:00
Šimon Brandner
f410004d45
Clean up
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2020-12-26 08:50:46 +01:00
Šimon Brandner
49e238d580
Get screen-sharing working, somehow
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2020-12-26 08:32:50 +01:00
David Baker
489d188966
Add a separate file for types
2020-12-22 15:37:58 +00:00
J. Ryan Stinnett
79fb7bab0b
Merge pull request #1561 from matrix-org/jryans/prepublish-only
...
Use TypeScript source for development, swap to build during release
2020-12-22 13:48:15 +00:00
J. Ryan Stinnett
c410954bad
Replace dot-json with jq equivalents
2020-12-22 13:39:42 +00:00
J. Ryan Stinnett
53a8a7d50f
Remove temporary prepare script
...
This was as a temporary measure during the last release so that downstream
layers would still have types as they expect.
2020-12-22 11:49:59 +00:00
J. Ryan Stinnett
1c7f95c0ee
Use TypeScript source for development, swap to build during release
...
This changes the JS SDK to point `main` to TypeScript source and remove any
indication of `typings`. For local development and CI workflows, it means many
steps can run without building first, which saves lots of time.
During release, we still build for Node and browsers as before. The release
script adjusts the `main` and `typings` fields before publishing and
distribution to point to the built output for those that use them.
2020-12-22 11:48:57 +00:00
RiotRobot
1717fcf499
Merge branch 'master' into develop
2020-12-21 17:34:12 +00:00
RiotRobot
b25453cf87
v9.4.1
2020-12-21 17:31:21 +00:00
RiotRobot
07b596bf30
Prepare changelog for v9.4.1
2020-12-21 17:29:58 +00:00
RiotRobot
1166947c21
Further tweaks to get all layers building again
2020-12-21 17:29:22 +00:00
dependabot[bot]
6e7b9ca6c0
Bump node-notifier from 8.0.0 to 8.0.1
...
Bumps [node-notifier](https://github.com/mikaelbr/node-notifier ) from 8.0.0 to 8.0.1.
- [Release notes](https://github.com/mikaelbr/node-notifier/releases )
- [Changelog](https://github.com/mikaelbr/node-notifier/blob/v8.0.1/CHANGELOG.md )
- [Commits](https://github.com/mikaelbr/node-notifier/compare/v8.0.0...v8.0.1 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-12-21 16:54:57 +00:00
RiotRobot
5b1e3537cc
Merge branch 'master' into develop
2020-12-21 16:53:35 +00:00
RiotRobot
44843d418d
v9.4.0
2020-12-21 16:50:47 +00:00
RiotRobot
a103ffa038
Prepare changelog for v9.4.0
2020-12-21 16:50:46 +00:00
David Baker
712335789e
Yes, thank you test, you've made your point
2020-12-21 16:30:16 +00:00
David Baker
cdf8186f44
and also in the other direction
2020-12-21 16:30:08 +00:00
David Baker
d06942d602
Ignore party ID if opponent is v0
2020-12-21 16:30:00 +00:00
RiotRobot
45ac3a60dc
Revert "Remove postinstall script which also runs as a dependency"
...
This temporarily reverts commit 853363fdf5 , which
will cause trouble for downstream layers without additional changes.
2020-12-21 16:23:16 +00:00
David Baker
4f244da3ec
Makean interface for the replaces event
2020-12-21 15:42:34 +00:00
David Baker
4eefa05d3f
Another typo
2020-12-21 15:20:45 +00:00
David Baker
40fb31099a
Typo
2020-12-21 15:18:21 +00:00
David Baker
bcd85f5397
Rename to supportsCallTransfer
...
to be less ambiguous
2020-12-21 15:14:59 +00:00
David Baker
89aeda45c6
Basic call transfer initiation support
...
Re-commit of f3ee164a7d after I accidentally
merged to develop
2020-12-21 13:54:16 +00:00
David Baker
7581e5ffdc
Merge pull request #1565 from matrix-org/revert-1559-dbkr/ignore_party_id_v0
...
Revert "Ignore party ID if opponent is v0"
2020-12-21 13:48:40 +00:00
David Baker
7046fa3224
Revert "Ignore party ID if opponent is v0"
2020-12-21 13:48:06 +00:00
David Baker
ef392785e8
Merge pull request #1559 from matrix-org/dbkr/ignore_party_id_v0
...
Ignore party ID if opponent is v0
2020-12-21 13:47:33 +00:00
David Baker
5bd029115c
Merge pull request #1562 from matrix-org/dbkr/honour_reject_from_self
...
Honour a call reject event from another of our own devices
2020-12-18 17:24:32 +00:00
David Baker
b6f42b25dd
Honour a call reject event from another of our own devices
...
Fixes a bug where the call would ring again when you refreshed,
even though you'd previously rejected it.
2020-12-18 13:45:13 +00:00
RiotRobot
75dd9625a0
v9.4.0-rc.2
2020-12-16 15:53:01 +00:00
RiotRobot
fd6110679e
Prepare changelog for v9.4.0-rc.2
2020-12-16 15:53:00 +00:00
J. Ryan Stinnett
c761019aca
Merge pull request #1560 from matrix-org/jryans/rm-postinstall
...
Remove `postinstall` script which also runs as a dependency
2020-12-16 15:50:03 +00:00
J. Ryan Stinnett
853363fdf5
Remove postinstall script which also runs as a dependency
...
It seems I misunderstood the `postinstall` script and had thought it would only
run when installing the project root. Instead, it seems to run also as a
dependency as well.
This change should be fine for release, but it does mean when developing
the JS SDK, you'll need to manually build. CI pipelines will also need to be
changed to call an extra build step.
2020-12-16 15:43:06 +00:00
RiotRobot
f7753f8be3
v9.4.0-rc.1
2020-12-16 14:17:25 +00:00
RiotRobot
d2dfa29556
Prepare changelog for v9.4.0-rc.1
2020-12-16 14:17:25 +00:00
David Baker
c0a88b7f4e
Yes, thank you test, you've made your point
2020-12-15 18:06:48 +00:00
David Baker
150e5fede4
and also in the other direction
2020-12-15 16:22:11 +00:00
David Baker
bb3ec322fb
Ignore party ID if opponent is v0
2020-12-15 16:21:14 +00:00
David Baker
f3ee164a7d
Basic call transfer initiation support
...
Sends an m.call.replaces event and flag for whether to advertise
support.
MSC2747 (https://github.com/matrix-org/matrix-doc/pull/2747 )
2020-12-15 14:51:29 +00:00
David Baker
035cb9fe08
Merge pull request #1553 from matrix-org/dbkr/line_1_2
...
Fixes to support line 1 / 2
2020-12-11 10:26:23 +00:00
David Baker
58d0018174
Merge remote-tracking branch 'origin/develop' into dbkr/line_1_2
2020-12-10 14:00:47 +00:00
David Baker
52ed0f8615
Merge pull request #1549 from matrix-org/dbkr/hold_ui
...
Add API for listening to remote hold status, advertise VoIP V1
2020-12-10 12:30:46 +00:00
David Baker
2a46513dfd
remove outdated comment
...
(it did work - I just was not checking the flag in the right place)
2020-12-09 11:21:23 +00:00
David Baker
907567182d
Mute speaker when putting a call on hold
2020-12-08 19:45:11 +00:00
David Baker
46cebcd1ca
Merge pull request #1555 from matrix-org/dbkr/fix_hangup_from_other_client
...
A hangup from another client is still valid
2020-12-08 19:02:00 +00:00
David Baker
40198f95dc
A hangup from another client is still valid
...
if we're in the ringing state
Fixes https://github.com/vector-im/element-web/issues/15933
2020-12-08 18:53:11 +00:00
David Baker
736b934b18
Merge remote-tracking branch 'origin/develop' into dbkr/hold_ui
2020-12-08 11:59:32 +00:00
J. Ryan Stinnett
b009811ac9
Merge pull request #1554 from matrix-org/jryans/rm-temp-test-build
...
Remove temporary build step for tests
2020-12-08 10:48:56 +00:00
RiotRobot
ff6612f9d0
Merge branch 'master' into develop
2020-12-07 12:10:31 +00:00
RiotRobot
565d446b1d
v9.3.0
2020-12-07 12:07:32 +00:00
RiotRobot
044d334398
Prepare changelog for v9.3.0
2020-12-07 12:07:31 +00:00
J. Ryan Stinnett
e31ef2dfb5
Remove temporary build step for tests
...
Now that the pipeline has been updated to build for tests, we can remove this
temporary build in the test script.
Related to https://github.com/matrix-org/pipelines/pull/113
2020-12-07 10:21:26 +00:00
J. Ryan Stinnett
c20566083a
Merge pull request #1552 from matrix-org/jryans/browser-prepublishonly
...
Move browser build steps to prepublish only
2020-12-07 10:19:07 +00:00
David Baker
9845553a5f
playRemoteVideo should be with it's friend, playRemoteAudio
2020-12-04 20:03:58 +00:00
David Baker
03737546fe
Remove the media operation queues
...
As per the comment on playRemoteVideo()
2020-12-04 20:03:11 +00:00
J. Ryan Stinnett
579cb00c98
Temporarily build browser mode for tests
2020-12-04 14:19:46 +00:00
David Baker
a307950213
Merge remote-tracking branch 'origin/develop' into dbkr/hold_ui
2020-12-03 19:26:36 +00:00
David Baker
0f5c469be6
Merge remote-tracking branch 'origin/develop' into dbkr/line_1_2
2020-12-03 17:55:59 +00:00
David Baker
6f7e409e9a
Some little fixes to support line 1 / 2
...
* Resume playing audio at the appropriate time
* Re-emit call events (they were the exception before - all other events
were re-emitted through the MatrixClient)
* Fix an audio/video typo
2020-12-03 17:41:34 +00:00
J. Ryan Stinnett
d707912d81
Move browser build steps to prepublish only
...
This speeds local development and CI runs by only running the browser build
steps at release time.
2020-12-03 14:58:28 +00:00
Michael Telatynski
97ab680f4e
Merge pull request #1541 from matrix-org/t3chguy/socials
...
Extend getSsoLoginUrl for MSC2858
2020-12-02 15:48:40 +00:00
Michael Telatynski
ea35a29bd8
Merge branch 'develop' of github.com:matrix-org/matrix-js-sdk into t3chguy/socials
2020-12-02 15:18:37 +00:00
RiotRobot
63c182bc3e
v9.3.0-rc.1
2020-12-02 14:20:20 +00:00
RiotRobot
b1a0a12a5f
Prepare changelog for v9.3.0-rc.1
2020-12-02 14:20:19 +00:00
David Baker
cc242230be
Update comment
2020-11-27 14:42:18 +00:00
David Baker
aef9211ea8
Merge pull request #1551 from matrix-org/dbkr/user_media_error
...
Export CallError
2020-11-27 14:40:59 +00:00
David Baker
de5d557882
Export CallError
...
So the types can be typed
2020-11-27 12:57:40 +00:00
J. Ryan Stinnett
fa9adf199d
Merge pull request #1550 from matrix-org/jryans/upgrade-deps-2020-11-25
...
Upgrade dependencies
2020-11-26 15:50:28 +00:00
J. Ryan Stinnett
0807066f1f
Nested upgrades via yarn upgrade
2020-11-26 15:06:30 +00:00
J. Ryan Stinnett
142e79941d
Upgrade to latest major version of direct deps
2020-11-26 15:04:52 +00:00
David Baker
5e9ce38a24
Add API for listening to remote hold status
...
And avoid isLocalOnHold() returning true whilst the remote side
is un-held.
2020-11-26 14:32:47 +00:00
J. Ryan Stinnett
f42e6373c4
Merge pull request #1547 from dalcde/error
...
Don't log error when environment does not support WebRTC
2020-11-26 12:13:49 +00:00
Dexter Chua
bc46609caa
Don't log error when WebRTC not supported
...
This function is *always* called when a MatrixClient is created, e.g. in
an appservice. If the environment does not support WebRTC, this is not
necessarily an error; it is expected in many situations.
Fix a small typo
Signed-off-by: Dexter Chua <dec41@srcf.net >
2020-11-26 13:55:36 +08:00
J. Ryan Stinnett
cc44abe2d3
Nested upgrades via yarn upgrade
2020-11-25 17:22:20 +00:00
J. Ryan Stinnett
db6398acdd
Upgrade to latest minor version of direct deps
2020-11-25 17:16:22 +00:00
RiotRobot
6661bde608
Merge branch 'master' into develop
2020-11-23 16:23:01 +00:00
RiotRobot
69f6bba964
v9.2.0
2020-11-23 16:19:22 +00:00
RiotRobot
2a4e722f0f
Prepare changelog for v9.2.0
2020-11-23 16:19:22 +00:00
J. Ryan Stinnett
dd20828ded
Merge pull request #1545 from matrix-org/jryans/fix-dehydration-method-release
...
[Release] Fix dehydration method name
2020-11-19 16:30:35 +00:00
J. Ryan Stinnett
5993dd588c
Merge pull request #1544 from matrix-org/jryans/fix-dehydration-method
...
Fix dehydration method name
2020-11-19 16:24:25 +00:00
J. Ryan Stinnett
30f86e2437
Fix dehydration method name
...
https://github.com/matrix-org/matrix-js-sdk/pull/1537 changed some dehydration
method names, but one call site was missed.
2020-11-19 16:22:38 +00:00
J. Ryan Stinnett
3ef91e16d8
Fix dehydration method name
...
https://github.com/matrix-org/matrix-js-sdk/pull/1537 changed some dehydration
method names, but one call site was missed.
2020-11-19 16:16:40 +00:00
RiotRobot
45e9b3ac68
v9.2.0-rc.1
2020-11-18 15:54:10 +00:00
RiotRobot
a076e3f0fc
Prepare changelog for v9.2.0-rc.1
2020-11-18 15:54:09 +00:00
Michael Telatynski
99bff04ccc
Update base-apis.js
2020-11-17 15:25:17 +00:00
Michael Telatynski
bd906e619d
Extend getSsoLoginUrl for MSC2858
2020-11-17 09:55:14 +00:00
David Baker
34882cc438
Merge pull request #1532 from matrix-org/dbkr/call_hold
...
Implement call holding functionality
2020-11-10 08:41:26 +00:00
RiotRobot
5ac00e3465
Merge branch 'master' into develop
2020-11-09 16:21:25 +00:00
RiotRobot
622dd065ff
v9.1.0
2020-11-09 16:17:53 +00:00
RiotRobot
c5c98a6ac1
Prepare changelog for v9.1.0
2020-11-09 16:17:53 +00:00
David Baker
da423ed508
Add comment that the timeout probably isn't
...
After a fair emount of investigation, it looks like there's not
really a particularly elegant way to have an environment where
setTimeout has a return type that makes sensible assertions in both
node and the browser. Ideally we want it to be something that asserts
that we don't try to use it as a NodeJS.Timeout (ie. call the methods)
because that will break in a browser. In practice, this involves making
wrappers or redefining the timeout functions or some similar kind of
hackery, the evils of which probably offset having perfect typing.
https://matrix.to/#/!bEWtlqtDwCLFIAKAcv:matrix.org/$vpFWl7p1_8A858RAccO0gud3sNVWIDNxNELRjdqaZQ4?via=matrix.org&via=mozilla.org&via=vector.modular.im
for the discussion
2020-11-09 15:59:54 +00:00
Bruno Windels
11c4337cfc
Merge pull request #1537 from matrix-org/bwindels/dehydration
...
Support awaitable one-time dehydration
2020-11-04 15:22:09 +00:00
Bruno Windels
458164384d
add client method for one-time dehydration that can be awaited
2020-11-04 16:05:31 +01:00
Bruno Windels
13c7f55a79
split up setKey and setKeyAndQueue
...
as dehydrating in the background prevents use-cases where you
want to await the creation of the dehydrated device
2020-11-04 16:02:31 +01:00
Bruno Windels
4ab675863a
fix typo
2020-11-04 16:00:53 +01:00
RiotRobot
5414b3b39d
v9.1.0-rc.1
2020-11-04 14:03:49 +00:00
RiotRobot
c54db30dc8
Prepare changelog for v9.1.0-rc.1
2020-11-04 14:03:48 +00:00
Michael Telatynski
f11103bfcc
Merge pull request #1534 from matrix-org/t3chguy/fix/15604
...
Client set profile methods update own user
2020-11-04 13:59:58 +00:00
Bruno Windels
b56936003d
stop dehydration timer when stopping the client
2020-11-03 10:13:19 +01:00
Travis Ralston
f61604a51e
Merge pull request #1535 from matrix-org/travis/fix-acl-type
...
Fix spelling error in the server ACL event type
2020-11-02 12:54:14 -07:00
Travis Ralston
ae77f900ef
Fix spelling error in the server ACL event type
2020-11-02 12:51:15 -07:00
Michael Telatynski
645842f0fd
Update comments
2020-11-02 18:09:32 +00:00
Bruno Windels
39d3640973
Merge pull request #1533 from matrix-org/bwindels/dehydration-await-crypto-store
...
await idb operations from crypto store for dehydration
2020-11-02 17:49:45 +00:00
Michael Telatynski
66aa9c4831
pass a presence event
2020-11-02 17:39:25 +00:00
Michael Telatynski
7de0ca2048
pass args
2020-11-02 17:29:14 +00:00
Michael Telatynski
5bbc5cad9f
Client setProfile methods update own user
2020-11-02 17:20:03 +00:00
Bruno Windels
0a7a80d5a8
await idb operations from crypto store for dehydration
2020-11-02 17:35:32 +01:00
David Baker
33d1a33a17
Implement call holding functionality
...
Using m.call.negotiate
2020-10-29 17:54:54 +00:00
David Baker
7f130949c8
Merge pull request #1531 from matrix-org/dbkr/those_cached_promises_again
...
Fix stuck never-sending messages
2020-10-28 20:20:26 +00:00
David Baker
ba7ee37899
Fix stuck never-sending messages
...
Another cached promise that wasn't cleared on failure
2020-10-28 18:29:05 +00:00
RiotRobot
f8863d5c24
Merge branch 'master' into develop
2020-10-28 14:15:01 +00:00
RiotRobot
1d7954c831
v9.0.1
2020-10-28 14:11:30 +00:00
RiotRobot
2bb4e91dfd
Prepare changelog for v9.0.1
2020-10-28 14:11:29 +00:00
J. Ryan Stinnett
abe5bf4240
Merge pull request #1530 from matrix-org/jryans/await-key-cache-release
...
[Release] Await key cache check to avoid prompts
2020-10-28 11:42:19 +00:00
J. Ryan Stinnett
c493bf7866
Deduplicate key backup signing paths
2020-10-28 11:07:56 +00:00
J. Ryan Stinnett
06bf0f22be
Await key cache check to avoid prompts
...
`isStoredInKeyCache` is async, so we need to await the result to know whether to
proceed. In addition, this wraps the block in a try / catch, since signing the
key backup is an optional step.
Fixes https://github.com/vector-im/element-web/issues/15530
2020-10-28 11:07:56 +00:00
J. Ryan Stinnett
02d9fe1d30
Merge pull request #1529 from matrix-org/jryans/await-key-cache
...
Await key cache check to avoid prompts
2020-10-27 17:34:21 +00:00
J. Ryan Stinnett
c3091c5aa4
Deduplicate key backup signing paths
2020-10-27 17:17:54 +00:00
J. Ryan Stinnett
677a427f1f
Await key cache check to avoid prompts
...
`isStoredInKeyCache` is async, so we need to await the result to know whether to
proceed. In addition, this wraps the block in a try / catch, since signing the
key backup is an optional step.
Fixes https://github.com/vector-im/element-web/issues/15530
2020-10-27 17:07:04 +00:00
RiotRobot
c416dd01a7
Merge branch 'master' into develop
2020-10-26 16:45:54 +00:00
RiotRobot
662fcb426b
v9.0.0
2020-10-26 16:42:34 +00:00
RiotRobot
fd0fe9e225
Prepare changelog for v9.0.0
2020-10-26 16:42:33 +00:00
Michael Telatynski
54a03b234a
Merge branch 'develop' into t3chguy/ts/4
2020-10-22 16:46:06 +01:00
David Baker
0ca8613896
Merge pull request #1524 from matrix-org/dbkr/optimise_ice_candidate_sending
...
Improve ICE candidate batching
2020-10-22 16:29:22 +01:00
David Baker
4b1817719e
Merge pull request #1527 from matrix-org/dbkr/logger_ts_try_3
...
Convert logger to typescript
2020-10-22 16:08:09 +01:00
David Baker
295c591e95
Merge pull request #1528 from matrix-org/dbkr/debugl_rel
...
Fix logger typo
2020-10-22 16:06:31 +01:00
David Baker
9df0480b78
Merge remote-tracking branch 'origin/develop' into dbkr/logger_ts_try_3
2020-10-22 16:03:12 +01:00
David Baker
5260f40451
Merge pull request #1525 from matrix-org/dbkr/debugl
...
Fix logger typo
2020-10-22 16:02:10 +01:00
David Baker
0cbe35e41f
Fix logger typo
2020-10-22 16:00:23 +01:00
David Baker
502745271d
Convert logger to typescript
...
Because it's annoying for the IDE to have no idea what methods are
on the logger. `loglevel` has types so it should just pass them
through.
2020-10-22 15:59:38 +01:00
David Baker
95baa3cd27
Fix logger typo
2020-10-22 15:54:55 +01:00
David Baker
8fe4a29176
Stop typescript from trying to be clever
2020-10-22 10:10:06 +01:00
David Baker
1a1a0e7324
Abort if call has ended and remove stray self(!)
2020-10-21 18:55:57 +01:00
David Baker
d00d07a1c1
Improve ICE candidate batching
...
Hopefully send fewer ICE candidate events by obeying the batching
guidelines in MSC2476.
2020-10-21 18:23:01 +01:00
Michael Telatynski
f27db16e30
Merge pull request #1523 from matrix-org/t3chguy/fix/js-online
...
bind online listener to window instead of document
2020-10-21 16:08:18 +01:00
RiotRobot
d4e107b3cd
v9.0.0-rc.1
2020-10-21 14:33:50 +01:00
RiotRobot
881b60c85f
Prepare changelog for v9.0.0-rc.1
2020-10-21 14:33:50 +01:00
Michael Telatynski
c5e1aade12
bind online listener to window instead of document
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-10-21 13:58:34 +01:00
David Baker
28198a6f40
Merge pull request #1522 from matrix-org/dbke/select_answer
...
Support m.call.select_answer
2020-10-21 13:33:49 +01:00
David Baker
30a01e26de
Make test pass
...
Don't send events all the way via the mock HTTP backend: we're not
trying to test that here. This meant we weren't actually getting
into the right state because the request to send the invite never
actually returned. Now this works, we need to clear the invite timer
otherwise jest has a timer hanging around at the end of the test
(plus we should be doing it anyway).
2020-10-21 12:41:36 +01:00
David Baker
8712703f7c
Support m.call.select_answer
...
Only send one if the answer has a party_id set
Also change some event types to the enum and rename receivedAnswer
to be more consistent
2020-10-21 11:52:58 +01:00
David Baker
e3a8631faa
Merge pull request #1521 from matrix-org/dbkr/dont_cache_versions_failure
...
Don't cache failures when fetching /versions
2020-10-20 16:35:49 +01:00
David Baker
3eab51ce79
Don't cache failures when fetching /versions
...
Otherwise we never recover
Fixes https://github.com/vector-im/element-web/issues/15509
2020-10-20 16:25:50 +01:00
J. Ryan Stinnett
9db0fe0795
Merge pull request #1518 from matrix-org/jryans/release-install-first
...
Install deps first as part of release
2020-10-20 15:45:25 +01:00
Michael Telatynski
228af037e3
Merge pull request #1517 from matrix-org/t3chguy/fix/js-1504
...
[Breaking] Change hasPendingEvent to return false if pending ordering !detached
2020-10-20 15:28:29 +01:00
J. Ryan Stinnett
654f250fd8
Merge pull request #1519 from matrix-org/jryans/release-disable-editor
...
Skip editor prompts for merges
2020-10-20 12:06:34 +01:00
J. Ryan Stinnett
a8693d9d68
Skip editor prompts for merges
...
The merges are never edited, and even with this change they will still abort if
there are conflicts.
2020-10-20 11:47:59 +01:00
J. Ryan Stinnett
f9f345e428
Move cache clean above install
2020-10-20 11:42:28 +01:00
J. Ryan Stinnett
e678706414
Install deps first as part of release
...
This ensures we always install (without running build scripts) as the first step
of release process, as otherwise it may fail later due to mismatched types or
any number of other errors.
2020-10-20 11:20:57 +01:00
Michael Telatynski
8018259480
Change hasPendingEvent to return false if pending event ordering !detached
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-10-19 14:56:58 +01:00
David Baker
9f713781cd
Merge pull request #1516 from matrix-org/dbkr/aint_no_party_like_a_typescript_party
...
Convert call test to TypeScript
2020-10-19 09:57:52 +01:00
David Baker
48d56dc5c0
Merge pull request #1512 from matrix-org/dbkr/party_in_the_usa
...
Support party_id
2020-10-19 09:57:30 +01:00
David Baker
701dfa09b4
Merge pull request #1510 from matrix-org/dbkr/hang_up_your_hangups
...
Support m.call.reject
2020-10-19 09:57:00 +01:00
David Baker
d965648fd7
Convert call test to TypeScript
...
Typescript tests basically just appear to work, apart from needing
the jest types imported so the typescript checker knows what's what.
DConvert the webrtc test to typescript, which actually mostly just
serves to point out that we're not mocking the whole of `document`,
but oh well.
2020-10-16 18:20:03 +01:00
David Baker
08c15e7203
Merge pull request #1515 from matrix-org/dbkr/remove_specbuild
...
Remove specbuild from .gitignore
2020-10-16 17:56:02 +01:00
David Baker
9b9e52d0a2
Remove specbuild from .gitignore
...
It's no longer a thing
2020-10-16 17:47:31 +01:00
David Baker
38cc8fe7dc
Merge pull request #1514 from matrix-org/dbkr/log_candidate_send_error
...
Log the error when we failed to send candidates
2020-10-16 16:52:05 +01:00
David Baker
590fac0fa9
Log the error when we failed to send candidates
2020-10-16 16:46:07 +01:00
David Baker
9590c8aaf0
Don't ignore hangups if we don't have a partner
2020-10-16 14:37:50 +01:00
David Baker
e2b79e4e7e
linty lint lint
2020-10-16 13:02:47 +01:00
David Baker
2df588f95a
Support party_id
...
Send party_id on events and check the party_id of incoming events matches
Includes a basic test to assert that it actually does: we should
build out a decent test suite for calls as there's a lot of edge-case
functionality that can break and slip through the cracks (eg. glare).
This is a start.
Fixes https://github.com/matrix-org/matrix-js-sdk/issues/1511
2020-10-16 12:53:08 +01:00
David Baker
7c3af91b42
Support m.call.reject
...
Start the migration to v1 VoIP by supporting m.call.reject, which
we'll send if the caller says they're v1. Our version stays as v0
for now, until we speak the rest of v1.
Honour the default reaosn in a hangup being user_hangup.
2020-10-15 14:51:05 +01:00
Michael Telatynski
ad2f537887
Merge remote-tracking branch 'origin/t3chguy/ts/4' into t3chguy/ts/4
2020-10-13 22:34:22 +01:00
Michael Telatynski
df36f0dab4
fix couple more errors
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-10-13 22:34:06 +01:00
Hubert Chathi
608d7faa29
fix some typescript errors
2020-10-13 17:25:58 -04:00
Michael Telatynski
7845957d0d
fix Olm types import
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-10-13 19:43:31 +01:00
Michael Telatynski
13c5c4e4f5
Use utf8 instead of utf-8
...
as per https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-10-13 19:36:03 +01:00
Michael Telatynski
62114028d5
Convert aes, key_passphrase, olmlib, and recoverykey to TS
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-10-13 19:28:16 +01:00
David Baker
4cc4b28c47
Merge pull request #1503 from matrix-org/dbkr/call_state_machine
...
Fixes for call state machine
2020-10-13 10:39:10 +01:00
David Baker
fad9b4c67f
Merge pull request #1506 from matrix-org/dbkr/fix_event_listener_remove
...
Fix call event handler listener removing
2020-10-12 14:17:53 +01:00
David Baker
ade3b3a021
Fix call event handler listener removing
...
Wrong kind of event emitter...
2020-10-12 14:12:34 +01:00
RiotRobot
d8c4101fdd
Merge branch 'master' into develop
2020-10-12 13:18:23 +01:00
RiotRobot
a12c250f2b
v8.5.0
2020-10-12 13:15:07 +01:00
RiotRobot
57eef2d832
Prepare changelog for v8.5.0
2020-10-12 13:15:06 +01:00
David Baker
b67a179a54
Merge pull request #1501 from matrix-org/dbkr/set_type_based_on_tracks
...
Set the type of the call based on the tracks
2020-10-12 11:42:40 +01:00
David Baker
06044b39c3
Merge pull request #1499 from matrix-org/dbkr/new_age_calls
...
Use new local timestamp for calls
2020-10-12 11:42:28 +01:00
J. Ryan Stinnett
d16cf26c5f
Merge pull request #1502 from matrix-org/jryans/sso-4s-integration
...
Adjust types and APIs to match React SDK
2020-10-12 11:41:06 +01:00
J. Ryan Stinnett
b060c5af38
Tune crypto types
2020-10-12 11:01:00 +01:00
David Baker
b28bad651e
Make events names an enum
2020-10-12 10:15:58 +01:00
David Baker
5c4b7a3213
Add user_hangup error code
...
but special case it for now & don't send it: it needs voip v1
2020-10-09 18:51:35 +01:00
David Baker
7f21c591ae
Fixes for call state machine
...
* Set 'connecting' state before sending answer, otherwise it can
race with ICE connecting
* Ignore completed ice connection state: connected is what we care about
* Null-check remotestream when stopping media
* Comments
2020-10-09 18:45:45 +01:00
David Baker
65b24f595c
Missed a reference to callList
2020-10-09 18:14:00 +01:00
David Baker
9d9c2720c2
Hopefully make if statement clearer
2020-10-09 17:43:40 +01:00
David Baker
f845100062
add 'public' to public method
2020-10-09 17:43:34 +01:00
David Baker
e6155f9e37
Use MatrixClient as type
...
and different array syntax
2020-10-09 17:43:28 +01:00
J. Ryan Stinnett
e9590e9093
Adjust types and APIs to match React SDK
...
Various small tweaks and alignments to match React SDK as part of TypeScript
conversion.
Part of https://github.com/vector-im/element-web/issues/15350
2020-10-09 17:21:14 +01:00
David Baker
49f2d1501c
Set the type of the call based on the tracks
...
Remove the old hack of inspecting the SDP which no longer seems to
be necessary.
2020-10-08 15:42:39 +01:00
J. Ryan Stinnett
c6819e0450
Omit stack trace if rehydration fails
2020-10-08 15:11:46 +01:00
David Baker
f518ea95f4
Use getLocalAge() & add grace period
...
Use the new local-age field for deciding whether a call is still
valid or not. Also add a grace period so we don't ring half a second
before the call becomes invalid.
2020-10-08 11:49:54 +01:00
David Baker
92c6332143
use more enums
2020-10-08 11:32:32 +01:00
David Baker
0df1a7da21
copyright header
2020-10-08 11:12:39 +01:00
David Baker
487a9c0967
Extract the call event handler out to its own class
...
and convert it to TypeScript
2020-10-08 11:10:20 +01:00
David Baker
fb89761671
Merge pull request #1495 from matrix-org/dbkr/age_is_just_a_number
...
Make an accurate version of 'age' for events
2020-10-08 09:29:16 +01:00
David Baker
d1d3ae074d
Add tests & fix some bugs found by said tests
2020-10-07 18:29:33 +01:00
David Baker
7dedaf90c3
Add a test for the age mangling
2020-10-07 18:04:20 +01:00
David Baker
687b98a09d
Don't add localTs if an event has no age
2020-10-07 17:39:19 +01:00
David Baker
c6b2e9873c
Merge pull request #1498 from matrix-org/dbkr/call_options_is_optional
...
Make 'options' parameter optional
2020-10-07 17:15:26 +01:00
David Baker
1e80491675
Make 'options' parameter optional
...
It's deprecated so generally nothing should be passing it
2020-10-07 17:08:21 +01:00
Michael Telatynski
a727da9193
Merge pull request #1497 from matrix-org/t3chguy/fix/14804
...
Create a giant event type enum
2020-10-07 16:48:39 +01:00
Michael Telatynski
0b7754581a
Update src/@types/event.ts
...
Co-authored-by: Travis Ralston <travpc@gmail.com >
2020-10-07 16:32:04 +01:00
David Baker
452e8ea385
Merge pull request #1494 from matrix-org/revert-1493-revert-1487-dbkr/tsify_call
...
Convert call.js to Typescript & update WebRTC APIs (re-apply)
2020-10-07 15:36:27 +01:00
David Baker
a189de9a2e
Add comment on mass event copying
2020-10-07 15:32:22 +01:00
David Baker
8632ca6e37
Merge remote-tracking branch 'origin/develop' into revert-1493-revert-1487-dbkr/tsify_call
2020-10-07 15:16:21 +01:00
RiotRobot
293860b6c5
v8.5.0-rc.1
2020-10-07 14:18:52 +01:00
RiotRobot
07667172cd
Prepare changelog for v8.5.0-rc.1
2020-10-07 14:18:52 +01:00
J. Ryan Stinnett
f5240cdac6
Merge pull request #1467 from uhoreg/fallback_keys
...
Add support for olm fallback keys
2020-10-07 10:24:12 +01:00
Michael Telatynski
7529d2b638
Create a giant event type enum
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-10-07 09:57:56 +01:00
Michael Telatynski
03fc12e888
Merge pull request #1492 from matrix-org/t3chguy/fix/10545
...
Fix editing local echoes not updating them in real time
2020-10-07 00:15:16 +01:00
Hubert Chathi
e05a50528e
make test no longer dependent on emscripten internals
2020-10-06 19:01:01 -04:00
Hubert Chathi
356ee90417
lint
2020-10-06 18:33:45 -04:00
Hubert Chathi
5dced57724
bump olm release again and fix global.d.ts to work with the olm TS definitions
2020-10-06 17:55:40 -04:00
Michael Telatynski
8ec3b88c5d
Update comments
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-10-06 22:55:34 +01:00
Michael Telatynski
d7ef128510
Merge pull request #1491 from matrix-org/t3chguy/fix/9836
...
Fix re-emit of Event.replaced to be on client and not room
2020-10-06 22:50:14 +01:00
Hubert Chathi
bb2502409b
update yarn.lock
2020-10-06 15:34:02 -04:00
Hubert Chathi
aa6aab4245
Merge remote-tracking branch 'origin/develop' into fallback_keys
2020-10-06 15:22:25 -04:00
Hubert Chathi
12aab0caeb
depend on newer olm
2020-10-06 15:18:18 -04:00
David Baker
2f316c558d
Merge pull request #1496 from matrix-org/dbkr/space_in_log_line
...
Add space to log line
2020-10-06 19:16:25 +01:00
David Baker
f447273b75
Add space to log line
2020-10-06 18:59:34 +01:00
David Baker
c8a18d51e6
Lint (& unused variable)
2020-10-06 17:45:21 +01:00
David Baker
d77af1e67a
Make an accurate version of 'age' for events
...
We've always had 'age' in events but it's never really been an
accurate representation of the event's age because we never did
anything with it. This transforms it into a local clock timestamp
when the event arives and when it comes out of the sync store, and
changes getLocalAge() to use it.
react-sdk doesn't appear to use getLocalAge() but any 3rd party apps
that do may notice a slight change in bahaviour.
2020-10-06 15:24:09 +01:00
David Baker
81c95224d1
Revert "Revert "Convert call.js to Typescript & update WebRTC APIs""
2020-10-06 15:21:45 +01:00
David Baker
a0e66291df
Merge pull request #1493 from matrix-org/revert-1487-dbkr/tsify_call
...
Revert "Convert call.js to Typescript & update WebRTC APIs"
2020-10-06 15:21:38 +01:00
David Baker
5733f46f4c
Revert "Convert call.js to Typescript & update WebRTC APIs"
2020-10-06 15:16:32 +01:00
David Baker
da2128feff
Merge pull request #1487 from matrix-org/dbkr/tsify_call
...
Convert call.js to Typescript & update WebRTC APIs
2020-10-06 15:09:10 +01:00
Michael Telatynski
d413faefdb
double sync-browserify jest timeout
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-10-06 12:39:18 +01:00
Michael Telatynski
0d1d767d96
Fix editing local echoes not updating them in real time
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-10-06 12:32:50 +01:00
David Baker
5619554023
use MatrixEvent for event types
2020-10-06 11:03:05 +01:00
David Baker
53880a4bb2
This is how plurals work
2020-10-06 10:54:51 +01:00
David Baker
812ae227b6
Make type enums PascalCase
2020-10-06 10:53:42 +01:00
David Baker
c6b44098ac
remove space before type colon
2020-10-06 09:55:02 +01:00
David Baker
92b95a98d0
comment other snake case identifiers
...
and also sto mixing quotes
2020-10-06 09:52:59 +01:00
David Baker
a3505ff42d
Use right case for private enum field
2020-10-06 09:49:51 +01:00
Michael Telatynski
15b2e3ff1d
Fix re-emit of Event.replaced to be on client and not room
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-10-06 08:23:19 +01:00
Hubert Chathi
1845d1ac55
Merge pull request #1436 from uhoreg/dehydration
...
Dehydrate and rehydrate devices
2020-10-05 17:19:28 -04:00
J. Ryan Stinnett
463819caa7
Merge pull request #1490 from matrix-org/jryans/key-setup-device-undefined
...
Keep local device after processing device list sync
2020-10-05 14:49:18 +01:00
J. Ryan Stinnett
a0317d9587
Fix tests
2020-10-05 14:29:30 +01:00
J. Ryan Stinnett
fa6ce0cb70
Keep local device after processing device list sync
...
This change ensure we always keep the local device in the device list, even if
the server claims it doesn't exist. This is important for initial startup, as it
is possible the device key upload takes a while to apply, and thus might not
appear in the first device list sync.
Fixes https://github.com/vector-im/element-web/issues/15319
2020-10-05 14:09:16 +01:00
David Baker
7471ff4b0d
Make setSinkId reliable
...
As per comment, this seems to be the way to make setSinkId work reliably on Chrome.
Also don't make our own mediastreams if we don't need to (ie. in a normal call
our tracks should come with their owen MediaStreams).
2020-10-03 16:57:33 +01:00
Hubert Chathi
65a5bfac88
update property name
2020-10-02 15:52:09 -04:00
David Baker
d2321410f8
Pass stream to addTrack too
...
Otherwise we end up with separate, unbundled 'streamless tracks'
which is not what we want.
2020-10-02 15:12:12 +01:00
Hubert Chathi
f90b5a99cd
Merge remote-tracking branch 'origin/develop' into dehydration
2020-10-01 21:55:05 -04:00
David Baker
cc4656b36a
Update call.js to use new WebRTC APIs
...
and some other related & semi-related refactoring
2020-10-01 19:15:49 +01:00
J. Ryan Stinnett
34bc63a146
Merge pull request #1489 from matrix-org/jryans/no-console
...
Enforce logger module via lint rules
2020-10-01 14:56:15 +01:00
J. Ryan Stinnett
09bd91a588
Enforce logger module via lint rules
...
This adds lint rules (and fixes various errors) to ensure we use the `logger`
intermediary module, rather than accessing the console directly.
2020-10-01 14:28:24 +01:00
David Baker
bb3e082e5b
Make direction public, remove didConnect
...
Various flags that may or may not have been part of the poorly defined
external API before. Neither were used internally. Make direction a
public export but remove didConnect.
2020-10-01 10:15:27 +01:00
Hubert Chathi
60c863f829
lint
2020-09-30 18:33:27 -04:00
Hubert Chathi
2d2a73bf52
make dehydrated device name configurable
2020-09-30 18:05:52 -04:00
Hubert Chathi
7b9f73709d
use "dehydration" as the cache name
2020-09-30 17:50:37 -04:00
Hubert Chathi
1dc89f642d
use logger instead of console
2020-09-30 17:46:18 -04:00
David Baker
a78b59010a
Convert call.js to Typescript
...
This does a fairly basic rewriting of the whole file to bring it up
to a vaguely modern standard of code. Nothing should have changed
fundamentally, but it probably should do: as per the global type
overrides, we use a lot of deprecated WebRTC APIs and should probably
update.
2020-09-30 18:54:48 +01:00
Hubert Chathi
a2e1d94fcf
more lint
2020-09-30 01:22:46 -04:00
Hubert Chathi
b181c83b93
lint
2020-09-30 01:16:57 -04:00
Hubert Chathi
cf7c84c4ba
more linting, because GitHub is showing me outdated CI info
2020-09-30 01:10:33 -04:00
Hubert Chathi
6e5230f9f9
fix lint again
2020-09-30 01:07:35 -04:00
Hubert Chathi
f03f7c0acb
fix lint
2020-09-30 00:58:37 -04:00
Hubert Chathi
aa9b807b82
update to latest dehydration endpoints, and simplify API
2020-09-30 00:48:07 -04:00
Travis Ralston
fa9921e091
Merge pull request #1462 from orangecms/develop
...
extend method redactEvent with reason
2020-09-28 15:05:00 -06:00
RiotRobot
a9a6b2de48
Merge branch 'master' into develop
2020-09-28 16:09:28 +01:00
RiotRobot
1ef746658f
v8.4.1
2020-09-28 16:06:30 +01:00
RiotRobot
fe0099b497
Prepare changelog for v8.4.1
2020-09-28 16:06:30 +01:00
J. Ryan Stinnett
7e9c4146a5
Merge pull request #1486 from matrix-org/dbkr/catch_exceptions_from_call_event_handler_rel
...
Catch exception from call event handler
2020-09-28 16:01:07 +01:00
David Baker
3e978c64e4
Merge pull request #1484 from matrix-org/dbkr/catch_exceptions_from_call_event_handler
...
Catch exception from call event handler
2020-09-28 15:56:29 +01:00
David Baker
13c5920a46
Merge pull request #1485 from matrix-org/dbkr/ignore_invalid_candidates_rel
...
Ignore invalid candidates
2020-09-28 15:55:00 +01:00
David Baker
3b19203fd2
Catch exception from call event handler
...
Otherwise they leak out ot the sync loop. It's unfortunate that
exceptions from event handlers leak out to the emitter, and this
seems a bit clumsy, but having to wrap eveery event emit in a try
block seems worse.
2020-09-28 15:48:06 +01:00
David Baker
84cd05b218
Ignore invalid candidates
2020-09-28 15:47:02 +01:00
David Baker
9b9a9642ee
Merge pull request #1483 from matrix-org/dbkr/ignore_invalid_candidates
...
Ignore invalid candidates
2020-09-28 15:41:32 +01:00
David Baker
639d2317ed
Catch exception from call event handler
...
Otherwise they leak out ot the sync loop. It's unfortunate that
exceptions from event handlers leak out to the emitter, and this
seems a bit clumsy, but having to wrap eveery event emit in a try
block seems worse.
2020-09-28 15:39:21 +01:00
David Baker
52379d7655
Ignore invalid candidates
2020-09-28 15:22:01 +01:00
Michael Telatynski
29827362d6
Merge pull request #1478 from matrix-org/t3chguy-patch-1
...
Always push docs if they are generated
2020-09-28 14:32:07 +01:00
RiotRobot
f33315f610
Merge branch 'master' into develop
2020-09-28 14:23:19 +01:00
RiotRobot
aec92a41da
v8.4.0
2020-09-28 14:20:06 +01:00
RiotRobot
d570811ddc
Prepare changelog for v8.4.0
2020-09-28 14:20:06 +01:00
J. Ryan Stinnett
9cd015a218
Merge pull request #1482 from matrix-org/jryans/guard-backup-sig-release
...
Only sign key backup with cross-signing keys when available
2020-09-28 12:13:23 +01:00
J. Ryan Stinnett
8d2cc5096e
Fix default key cache check
2020-09-28 10:38:13 +01:00
J. Ryan Stinnett
7ec0bf69f3
Only sign key backup with cross-signing keys when available
...
This changes the key backup setup step to only sign with cross-signing keys when
both the public and private keys are already available without prompting. In
many cases down these paths, the cross-signing keys either may not exist or may
not be accessible. We always sign the key backup with your device key as well,
so there is always a route to trust the key backup even if this is skipped.
Fixes https://github.com/vector-im/element-web/issues/15230
2020-09-28 10:38:13 +01:00
J. Ryan Stinnett
f3a8306107
Merge pull request #1481 from matrix-org/jryans/guard-backup-sig
...
Only sign key backup with cross-signing keys when available
2020-09-28 10:21:34 +01:00
J. Ryan Stinnett
2b29e9934c
Fix default key cache check
2020-09-28 10:16:20 +01:00
J. Ryan Stinnett
4b1104e463
Only sign key backup with cross-signing keys when available
...
This changes the key backup setup step to only sign with cross-signing keys when
both the public and private keys are already available without prompting. In
many cases down these paths, the cross-signing keys either may not exist or may
not be accessible. We always sign the key backup with your device key as well,
so there is always a route to trust the key backup even if this is skipped.
Fixes https://github.com/vector-im/element-web/issues/15230
2020-09-25 17:36:47 +01:00
Hubert Chathi
60b9ef959d
don't include an empty signatures field when calculating the signature
2020-09-24 18:46:17 -04:00
Hubert Chathi
0074c2cf57
mark fallback keys as fallback
2020-09-24 18:09:07 -04:00
Hubert Chathi
b0204ab54e
use unstable prefix
2020-09-24 17:41:08 -04:00
J. Ryan Stinnett
bc5b07aa75
Merge pull request #1479 from matrix-org/jryans/upgrade-deps-2020-09-23
...
Upgrade dependencies
2020-09-24 16:40:36 +01:00
Michael Telatynski
cfe90dbed5
Always push docs if they are generated
2020-09-24 12:47:23 +01:00
J. Ryan Stinnett
fa913655bc
Upgrade dependencies
2020-09-23 17:35:24 +01:00
RiotRobot
af0b6fc6ac
v8.4.0-rc.1
2020-09-23 15:10:06 +01:00
RiotRobot
6347031f61
Prepare changelog for v8.4.0-rc.1
2020-09-23 15:10:06 +01:00
J. Ryan Stinnett
3eda039898
Merge pull request #1477 from matrix-org/hs/fix-no-queryparams
...
If there are extraParams set, ensure that queryParams is defined
2020-09-23 14:20:55 +01:00
Will Hunt
5447d99481
If there are extraParams set, ensure that queryParams is defined
2020-09-23 14:06:39 +01:00
J. Ryan Stinnett
9d08744fe2
Merge pull request #1475 from matrix-org/jryans/security-diags
...
Add diagnostics to security bootstrap paths
2020-09-23 13:18:28 +01:00
J. Ryan Stinnett
848fa257ea
Add diagnostics to security bootstrap paths
...
May help with https://github.com/vector-im/element-web/issues/15230
2020-09-23 12:37:13 +01:00
Michael Telatynski
54553fb671
Merge pull request #1459 from matrix-org/t3chguy/docdash
...
Switch to a combination of better-docs and docdash
2020-09-22 17:25:13 +01:00
Daniel Maslowski
aad7484c8d
Add optional reason to be passed to redactEvent
...
Signed-off-by: Daniel Maslowski <info@orangecms.org >
2020-09-21 21:50:38 +02:00
J. Ryan Stinnett
ad658ead37
Merge pull request #1474 from matrix-org/jryans/stop-sudden-key-prompts
...
Undo attempts to cache private keys aggressively
2020-09-21 17:00:11 +01:00
J. Ryan Stinnett
c787f0e9d0
Remove redundant comment
2020-09-21 16:29:23 +01:00
J. Ryan Stinnett
6f5da701aa
Undo attempts to cache private keys aggressively
...
This was triggering security prompts at random times (after any device list
update).
Fixes https://github.com/vector-im/element-web/issues/15250
2020-09-21 16:21:41 +01:00
J. Ryan Stinnett
a01368bd60
Merge pull request #1472 from matrix-org/jryans/cross-signing-half-cached
...
Repair secret storage reset, cache keys when missing
2020-09-21 13:03:10 +01:00
Hubert Chathi
16dccd75c1
fix string
2020-09-18 19:20:09 -04:00
Hubert Chathi
5151b52688
Merge remote-tracking branch 'origin/develop' into dehydration
2020-09-18 19:13:22 -04:00
Michael Telatynski
f682097e45
Merge pull request #1471 from matrix-org/t3chguy/fix/15204
...
Prevent parallel getVersions calls
2020-09-18 18:08:50 +01:00
J. Ryan Stinnett
89ebffd69f
Tweak error handling
2020-09-18 16:28:18 +01:00
David Baker
cdeb4ead9e
Merge pull request #1473 from matrix-org/dbkr/end_of_candidates
...
Send end-of-candidates
2020-09-18 15:46:31 +01:00
David Baker
79cc835874
Send end-of-candidates
...
As per https://github.com/matrix-org/matrix-doc/pull/2746
2020-09-18 15:06:41 +01:00
Travis Ralston
8df866865d
Merge pull request #1470 from matrix-org/travis/e2e-default-serverside
...
Add a function for checking the /versions flag for forced e2ee
2020-09-18 07:50:50 -06:00
J. Ryan Stinnett
fa7eff50e5
Cache cross-signing private keys if missing as well
...
We were only caching private keys locally on public key change, but we should
also do so if they are missing from the current session: e.g. for most users
that will be true for the master key, since previously we were not caching it.
Part of https://github.com/vector-im/element-web/issues/15230
2020-09-18 14:46:22 +01:00
Michael Telatynski
6558881952
update comment
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-09-18 14:29:50 +01:00
Michael Telatynski
9cbe2c985d
Prevent parallel getVersions calls
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-09-18 14:28:37 +01:00
J. Ryan Stinnett
7769c53cd6
Skip over key when uncached
...
This change ensures we omit any uncached keys, rather than adding nulls. This is
helpful for future steps that might try to store all of the values in one call.
Fixes https://github.com/vector-im/element-web/issues/15230
2020-09-18 12:57:55 +01:00
Travis Ralston
7a5a47ecc7
Add a function for checking the /versions flag for forced e2ee
2020-09-17 22:44:34 -06:00
Hubert Chathi
492c1d77d8
style fixes
2020-09-16 17:09:33 -04:00
Will Hunt
8c315ebd15
Merge pull request #1469 from matrix-org/hs/usingE2EProxy-flag
...
Add option to allow users of pantialaimon to use the SDK
2020-09-16 17:01:11 +01:00
Will Hunt
6044b2cbad
fix lint & tests
2020-09-16 16:49:51 +01:00
Will Hunt
7acfd0b423
Improve flag name and docstring
...
Co-authored-by: J. Ryan Stinnett <jryans@gmail.com >
2020-09-16 16:19:25 +01:00
Will Hunt
e201aab440
Add 'usingE2EProxy' to allow users of pantialaimon to use the SDK
2020-09-15 17:43:17 +01:00
Hubert Chathi
3952768667
Merge remote-tracking branch 'origin/develop' into fallback_keys
2020-09-15 12:04:30 -04:00
J. Ryan Stinnett
fb25fa3a27
Merge pull request #1468 from Charly98cma/develop
...
Fixed Yarn broken link
2020-09-15 16:26:13 +01:00
Carlos
857ad9b180
Fixed Yarn broken link
...
Yarn install guide link was broken, so I just fixed.
2020-09-15 17:08:36 +02:00
Hubert Chathi
14843a1bca
Merge pull request #1466 from matrix-org/uhoreg/typescript-fixes
...
some TypeScript and doc fixes
2020-09-15 09:17:27 -04:00
Hubert Chathi
6331b34cf7
lint
2020-09-14 23:00:07 -04:00
Hubert Chathi
2ebe1dfa16
support olm fallback keys
2020-09-14 22:10:16 -04:00
Hubert Chathi
6bdbee533c
TypeScript and doc fixes
2020-09-14 18:53:48 -04:00
RiotRobot
b9886d4f34
Merge branch 'master' into develop
2020-09-14 13:29:32 +01:00
RiotRobot
666cbbce08
v8.3.0
2020-09-14 13:26:27 +01:00
RiotRobot
69c575a4be
Prepare changelog for v8.3.0
2020-09-14 13:26:27 +01:00
J. Ryan Stinnett
c920de0d28
Merge pull request #1464 from matrix-org/jryans/remove-travis-refs
...
Remove Travis CI reference
2020-09-10 15:32:10 +01:00
Travis Ralston
53cdf53f63
Merge pull request #1463 from matrix-org/travis/fix-3pid-createRoom
...
Inject identity server token for 3pid invites on createRoom
2020-09-10 07:05:01 -06:00
J. Ryan Stinnett
d9dda6aebc
Remove Travis CI reference
...
Fixes https://github.com/vector-im/element-web/issues/15098
2020-09-10 10:16:54 +01:00
Travis Ralston
3d4a9a24ce
Inject identity server token for 3pid invites on createRoom
...
We only inject if needed to avoid potentially overwriting the value with something unknown. The docs in the react-sdk imply this was supposed to happen.
Fixes https://github.com/vector-im/element-web/issues/14814
2020-09-09 12:33:00 -06:00
RiotRobot
de339d3098
v8.3.0-rc.1
2020-09-09 15:06:48 +01:00
RiotRobot
0f83234be9
Prepare changelog for v8.3.0-rc.1
2020-09-09 15:06:47 +01:00
Michael Telatynski
bcd9b45589
Switch to a combination of better-docs and docdash
2020-09-04 11:08:26 +01:00
Hubert Chathi
19f3996e09
only cross-sign dehydrated device if cross-signing is available
2020-09-03 16:06:06 -04:00
Hubert Chathi
25c2cc1768
various fixes
2020-09-03 11:45:37 -04:00
J. Ryan Stinnett
eec7c4c61b
Merge pull request #1452 from dalcde/develop
...
Add missing options in ICreateClientOpts
2020-09-03 15:51:25 +01:00
J. Ryan Stinnett
25b4b049b7
Merge pull request #1457 from matrix-org/jryans/is-x-ready-bools
...
Ensure ready functions return boolean values
2020-09-02 17:30:16 +01:00
J. Ryan Stinnett
2191eb3f41
Ensure ready functions return boolean values
...
Fixes https://github.com/vector-im/element-web/issues/15087
2020-09-02 17:18:47 +01:00
J. Ryan Stinnett
bebdbf7e05
Merge pull request #1456 from matrix-org/jryans/cross-signing-verif-errors
...
Handle missing cross-signing keys gracefully
2020-09-02 15:07:27 +01:00
J. Ryan Stinnett
646c091966
Skip self-signing if device already signed
...
When adding a device to your account, both devices attempt to sign each other
using the self-signing key, but in reality only the new device needs to be
signed. This avoids a case where web would fail verification while attempting to
sign the old device because of missing private keys (since they aren't in 4S and
it hasn't requested them from the other device yet), even though signing the old
device is redundant anyway.
Part of https://github.com/vector-im/element-web/issues/14970
2020-09-02 12:54:26 +01:00
J. Ryan Stinnett
952729cb1b
Abort early if cross-signing key not found
...
This helps us print a better error message when the key does not exist.
Part of https://github.com/vector-im/element-web/issues/14970
2020-09-02 12:32:35 +01:00
RiotRobot
c6992e2056
Merge branch 'master' into develop
2020-09-01 17:00:47 +01:00
RiotRobot
77ed79e9a9
v8.2.0
2020-09-01 16:57:34 +01:00
RiotRobot
c4f4add0ec
Prepare changelog for v8.2.0
2020-09-01 16:57:33 +01:00
Michael Telatynski
7eeb60c838
Merge pull request #1451 from matrix-org/t3chguy/lint-ts
...
Fix eslint ts override tsx matching
2020-09-01 09:10:22 +01:00
Hubert Chathi
438861ae5e
separate dehydration functions to its own file and cache the key
2020-08-31 15:44:29 -04:00
Dexter Chua
d42cdbbc5b
Add missing options in ICreateClientOpts
...
This makes the examples in the README actually compile.
Signed-off-by: Dexter Chua <dec41@srcf.net >
2020-08-29 14:40:40 +08:00
Michael Telatynski
66237e1ea6
Fix eslint ts override tsx matching
2020-08-29 01:10:08 +01:00
J. Ryan Stinnett
a51c0450c3
Merge pull request #1450 from matrix-org/jryans/defer-cross-signing-setup
...
Untangle cross-signing and secret storage
2020-08-28 12:40:28 +01:00
J. Ryan Stinnett
7a2416bb6d
Add callback for app to cache secret storage key
...
This is useful when e.g. resetting both secret storage and cross-signing
together, as it avoids prompting for the secret storage key that was just
created.
2020-08-28 12:07:35 +01:00
J. Ryan Stinnett
a1528e9e33
Change log messages for uniqueness
2020-08-28 11:38:19 +01:00
J. Ryan Stinnett
71cc4d535e
Clean up comment
2020-08-28 11:36:02 +01:00
J. Ryan Stinnett
c06723df3d
Always store cross-signing keys when new 4S key ID
2020-08-28 11:35:25 +01:00
J. Ryan Stinnett
06b285c013
Add comment about trap with multiple devices
2020-08-28 11:11:51 +01:00
J. Ryan Stinnett
49c06ef0ca
Check cross-signing reset branch first
...
If we're resetting keys, we have to check that branch first.
2020-08-28 11:00:10 +01:00
J. Ryan Stinnett
5f92357fec
Tweak code style
2020-08-27 17:32:46 +01:00
J. Ryan Stinnett
3e0dd3d918
Copy docs to client.js as well
2020-08-27 14:09:12 +01:00
J. Ryan Stinnett
f19d76b08d
Untangle cross-signing and secret storage
...
This untangles cross-signing and secret storage setup into separate path that
can be invoked independently. There is no functional change with this patch, but
instead this just separates one giant monster API into two.
Part of https://github.com/vector-im/element-web/issues/13895
2020-08-27 13:32:54 +01:00
florianjacob
22713d8f89
correct IndexedDB store creation example
2020-08-26 14:24:13 +02:00
RiotRobot
8b6b16067b
v8.2.0-rc.1
2020-08-26 11:45:48 +01:00
RiotRobot
a2da0de17d
Prepare changelog for v8.2.0-rc.1
2020-08-26 11:45:48 +01:00
J. Ryan Stinnett
93ff3edb6b
Merge pull request #1449 from matrix-org/jryans/strict-enc-check
...
Add state event check
2020-08-26 11:03:42 +01:00
J. Ryan Stinnett
7c67fd69dd
Add state event check
...
State events are never encrypted, so we can ignore them here.
2020-08-26 10:55:03 +01:00
J. Ryan Stinnett
5ef5412a55
Move storage methods up to constructor
2020-08-25 19:27:26 +01:00
J. Ryan Stinnett
e88a384aa7
Update and reformat client.js docs copy
2020-08-25 12:56:30 +01:00
J. Ryan Stinnett
9067feeafb
Update comment on 4S signatures
...
As part of changing 4S to symmetric encryption, we no longer sign the 4S key
with the cross-signing MSK.
2020-08-25 12:56:25 +01:00
J. Ryan Stinnett
ed978f69fb
Merge pull request #1444 from matrix-org/jryans/secure-backup-required
...
Add method to check whether client .well-known has been fetched
2020-08-24 17:32:49 +01:00
J. Ryan Stinnett
743f2465ea
Document WellKnown.client event
2020-08-24 15:56:14 +01:00
J. Ryan Stinnett
41fffa233a
Switch to promise-based API
2020-08-24 15:56:14 +01:00
J. Ryan Stinnett
e45377166b
Merge pull request #1443 from matrix-org/jryans/cross-signing-auth-errors
...
Handle auth errors during cross-signing key upload
2020-08-24 11:52:40 +01:00
David Baker
24939bf0b0
Merge pull request #1448 from matrix-org/dbkr/dont_fail_if_audio_output_unavailable
...
Don't fail if the requested audio output isn't available
2020-08-21 16:19:20 +01:00
David Baker
3221be4855
Don't fail if the requested audio output isn't available
...
This thorws an exception if the requested device isn't available,
in which case we should catch it & carry on with the default device.
Fixes https://github.com/vector-im/element-web/issues/15019
2020-08-21 16:02:08 +01:00
David Baker
3135f1ed24
Merge pull request #1447 from matrix-org/dbkr/fix_log_fail
...
Fix logging failures
2020-08-21 11:12:11 +01:00
David Baker
1b0834ffb0
Fix logging failures
2020-08-21 11:01:34 +01:00
Hubert Chathi
ad85740ae2
allow other login functions to be used
2020-08-19 18:01:31 -04:00
David Baker
d79d613cb7
Merge pull request #1446 from matrix-org/dbkr/log_user_media_constraints
...
Log the constraints we pass to getUserMedia
2020-08-19 18:30:39 +01:00
David Baker
d8cc1f7b7a
Log the constraints we pass to getUserMedia
...
To help debug voip calls
2020-08-19 18:13:44 +01:00
J. Ryan Stinnett
d7c8856fdd
Add method to check whether client .well-known has been fetched
...
This allows clearly detecting whether we have _ever_ fetched .well-known at all.
Without this, it's hard to be sure whether the value is `undefined` because the
fetch has not been attempted yet or because an error occurred.
2020-08-19 16:10:10 +01:00
J. Ryan Stinnett
9d80a332aa
Upload cross-signing keys first to handle failure
...
This changes to uploading cross-signing keys first, since they require a valid
UI auth session, and so are more likely to fail than other API calls. With the
new ordering, if they do fail, then by failing first, we won't have made any
changes to the user's account, so everything rolls back correctly.
2020-08-19 11:55:09 +01:00
J. Ryan Stinnett
e14f7b63c7
Handle auth errors during cross-signing key upload
...
In order to handle auth errors (such as incorrect passwords), we need to ensure
we only try to upload cross-signing keys from within the auth flow helper
function.
This rearranges things to store that function in the builder to use it when the
actual upload happens.
2020-08-19 11:44:41 +01:00
Travis Ralston
3bd2880923
Revert "Merge pull request #1440 from matrix-org/travis/spec-i18n"
...
This reverts commit 2401ad7159 .
2020-08-18 13:07:31 -06:00
Will Hunt
6ec7e3a0b7
UserId must be sane
2020-08-18 18:42:55 +01:00
Will Hunt
1a1fe759c3
fix encoding bug
2020-08-18 18:41:45 +01:00
Travis Ralston
2401ad7159
Merge pull request #1440 from matrix-org/travis/spec-i18n
...
Use SAS emoji data from matrix-doc
2020-08-18 11:41:36 -06:00
Will Hunt
a919c798f8
Update _unstable_getSharedRooms to match spec
2020-08-18 18:34:44 +01:00
Will Hunt
80fe66c481
Add /uk.half-shot.msc2666/ prefix
2020-08-18 18:34:44 +01:00
Will Hunt
4577dc8f44
s/msc2644/msc2666/
2020-08-18 18:34:44 +01:00
Will Hunt
cf0a5305e0
Throw if server does not support getSharedRooms
2020-08-18 18:34:44 +01:00
Will Hunt
e69e6e1981
Update _unstable_getSharedRooms response format
2020-08-18 18:34:44 +01:00
Will Hunt
0febd99fbe
Add _unstable_getSharedRooms
2020-08-18 18:34:43 +01:00
Hubert Chathi
6e8e3e4150
use newer version of dehydration proposal and add some comments
2020-08-17 18:09:23 -04:00
Travis Ralston
5d95398621
Use SAS emoji data from matrix-doc
...
Fixes https://github.com/vector-im/element-web/issues/14947
Much like element-web's Jitsi wrapper build steps, this downloads the emoji JSON at build time to ensure it gets reasonably updated. In the future, the spec might want to consider publishing a dedicated i18n package on npm for this, however this is fine for now. We download rather than copy/paste to ensure we always have an updated copy.
2020-08-17 15:35:03 -06:00
RiotRobot
64cdd73b93
v8.1.0
2020-08-17 12:43:32 +01:00
RiotRobot
48a9236ea8
Prepare changelog for v8.1.0
2020-08-17 12:43:31 +01:00
RiotRobot
8b3126e9d8
v8.1.0-rc.1
2020-08-13 12:05:35 +01:00
RiotRobot
74d497cd2d
Prepare changelog for v8.1.0-rc.1
2020-08-13 12:05:35 +01:00
Michael Telatynski
5070a5c598
Merge pull request #1438 from brettz9/patch-1
...
Update on Promises
2020-08-09 13:11:51 +01:00
Brett Zamir
2e30b08e74
Update on Promises
...
It seems that with ES6 Promises being apparently used, the reference to `done()` is outdated.
Also clarifies that it is "problematic" to discard the results of promises rather than it being an "error" .
2020-08-09 17:39:53 +08:00
J. Ryan Stinnett
8bf63f5f0b
Merge pull request #1437 from matrix-org/jryans/defer-cross-signing-setup
...
Store and request master cross-signing key
2020-08-07 16:06:28 +01:00
J. Ryan Stinnett
11665d18ee
Cache all cross-signing private keys when checking trust
...
This ensures we try to get all private keys when e.g. logging in and using the
passphrase to unlock 4S.
Part of https://github.com/vector-im/element-web/issues/13896
2020-08-06 16:43:56 +01:00
J. Ryan Stinnett
a8a9fc0c9d
Log secret name received via sharing
2020-08-06 16:43:56 +01:00
J. Ryan Stinnett
098cd1b8d4
Request master cross-signing private key during verification
...
This change adds a request for the master cross-signing private key, in case the
other device is willing to share it.
Part of https://github.com/vector-im/element-web/issues/13896
2020-08-06 16:43:56 +01:00
J. Ryan Stinnett
3166a4880d
Move cross-signing key request path out of verification
...
This was always quite awkwardly placed in verification, so this moves it to
somewhere more expected. No changes are made to the logic or features in this
commit.
2020-08-06 16:39:56 +01:00
J. Ryan Stinnett
9d1c7136cc
Store master cross-signing private key in local cache
...
We now want to store all private keys in the local cache, including the master
key if available.
Part of https://github.com/vector-im/element-web/issues/13896
2020-08-06 16:39:56 +01:00
J. Ryan Stinnett
e100943edf
Fix typo in comments
2020-08-06 16:24:49 +01:00
RiotRobot
a6fe4cdf1c
Merge branch 'master' into develop
2020-08-05 15:30:42 +01:00
RiotRobot
8b5213c09a
v8.0.1
2020-08-05 15:27:22 +01:00
RiotRobot
23a133c825
Prepare changelog for v8.0.1
2020-08-05 15:27:22 +01:00
J. Ryan Stinnett
69c4496dfe
Merge pull request #1433 from matrix-org/bwindels/fixinvaliddisplaynames
...
Filter out non-string display names
2020-08-05 15:03:53 +01:00
Hubert Chathi
8a4440c314
initial work on dehydration
2020-08-04 16:06:19 -04:00
Bruno Windels
4d74cca206
Merge pull request #1434 from matrix-org/bwindels/fixinvaliddisplaynames-release
...
Filter out non-string display names
2020-08-04 13:55:40 +00:00
Bruno Windels
955e081699
respect signature
2020-08-04 15:48:48 +02:00
Bruno Windels
b7e73422ab
filter out non-string display names
2020-08-04 15:48:48 +02:00
Bruno Windels
a9a4ba33aa
respect signature
2020-08-04 15:43:57 +02:00
Bruno Windels
7116ad9f58
filter out non-string display names
2020-08-04 15:30:32 +02:00
J. Ryan Stinnett
3d18bdb2aa
Merge pull request #1427 from matrix-org/dependabot/npm_and_yarn/elliptic-6.5.3
...
Bump elliptic from 6.5.2 to 6.5.3
2020-08-04 10:38:10 +01:00
J. Ryan Stinnett
4c14581606
Merge pull request #1431 from matrix-org/jryans/riot-to-element
...
Replace Riot with Element in docs and comments
2020-08-04 10:27:32 +01:00
J. Ryan Stinnett
a9c9ec3977
Replace Riot with Element in docs and comments
...
This only covers the simple cases of references to issues and repos. More
complex areas, such as deployment scripts, will be handled separately.
Part of https://github.com/vector-im/element-web/issues/14864
2020-08-03 18:32:52 +01:00
J. Ryan Stinnett
694d1f9631
Merge pull request #1430 from matrix-org/jryans/rm-tslint
...
Remove leftover bits of TSLint
2020-07-31 20:30:44 +01:00
J. Ryan Stinnett
2b9cfae18a
Remove leftover bits of TSLint
2020-07-31 14:31:19 +01:00
RiotRobot
800d8380ce
v8.0.1-rc.1
2020-07-31 13:18:04 +01:00
RiotRobot
621ca28f68
Prepare changelog for v8.0.1-rc.1
2020-07-31 13:18:03 +01:00
J. Ryan Stinnett
4792241ff6
Merge pull request #1426 from matrix-org/jryans/clean-lint-deps
...
Remove redundant lint dependencies
2020-07-31 11:42:21 +01:00
David Baker
0b984df5f9
Merge pull request #1428 from matrix-org/dbkr/upload_keys_when_new_key_backup_seen
...
Upload all keys when we start using a new key backup version
2020-07-30 22:46:39 +01:00
David Baker
2e260155ea
Merge pull request #1429 from matrix-org/dbkr/countSessionsNeedingBackup
...
Expose countSessionsNeedingBackup
2020-07-30 22:46:22 +01:00
David Baker
b15c8a2d1c
Expose countSessionsNeedingBackup
...
Useful to see the number of keys waiting for backup (it's exposed
via events but you couldn;t get it directly). Also clarify doc on
the return value of `flagAllGroupSessionsForBackup` which was not
technically incorrect...
2020-07-30 19:05:45 +01:00
David Baker
94ab317f23
Upload all keys when we start using a new key backup version
...
Although see comment and other bug created
Fixes https://github.com/vector-im/riot-web/issues/14828
2020-07-30 18:08:48 +01:00
dependabot[bot]
02b37e1219
Bump elliptic from 6.5.2 to 6.5.3
...
Bumps [elliptic](https://github.com/indutny/elliptic ) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/indutny/elliptic/releases )
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.2...v6.5.3 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-07-30 12:41:01 +00:00
J. Ryan Stinnett
9d25848a21
Remove unused Jest lint plugin
2020-07-29 11:55:50 +01:00
J. Ryan Stinnett
3958768e1f
Remove redundant lint dependencies
...
These are no longer needed with the new standard lint repo.
2020-07-29 11:36:57 +01:00
Jorik Schellekens
cec00cd303
Merge pull request #1422 from matrix-org/joriks/conigure-eslint
...
Configure and use new eslint package
2020-07-28 19:53:54 +01:00
Jorik Schellekens
45cfef4294
New lines for let statements
2020-07-28 14:31:21 +01:00
Jorik Schellekens
2a01e99635
Merge branch 'develop' of github.com:matrix-org/matrix-js-sdk into joriks/conigure-eslint
2020-07-28 14:17:02 +01:00
Jorik Schellekens
a9c3aee447
Revert quotes change in ts
2020-07-28 14:16:46 +01:00
RiotRobot
c669382e12
v8.0.0
2020-07-27 20:50:09 +01:00
RiotRobot
19251c427a
Prepare changelog for v8.0.0
2020-07-27 20:50:08 +01:00
Michael Telatynski
a7aec9e2a4
Merge pull request #1424 from matrix-org/t3chguy/txnId
...
Properly support txnId
2020-07-24 00:01:31 +01:00
Michael Telatynski
99d7622b42
Properly support txnId
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-07-22 11:09:07 +01:00
Michael Telatynski
8728619d2c
Merge pull request #1423 from matrix-org/t3chguy/depr/1
...
[BREAKING] Remove deprecated getIdenticonUri
2020-07-21 21:35:30 +01:00
Michael Telatynski
f6d51fdfb8
remove outdated identicon tests
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-07-21 21:30:25 +01:00
Michael Telatynski
0ffaa8d617
Remove deprecated getIdenticonUri
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-07-21 21:18:17 +01:00
Jorik Schellekens
8a974172ab
Fix babel
2020-07-21 10:40:02 +01:00
Jorik Schellekens
72675f7266
Lint ts
2020-07-21 10:33:16 +01:00
Jorik Schellekens
0f559050d8
Fix whitespace issues
2020-07-21 10:00:16 +01:00
Jorik Schellekens
58084774bf
fix lock
2020-07-21 09:56:17 +01:00
Travis Ralston
c7aee7cebd
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/lodash-4.17.19' into develop
2020-07-20 15:47:57 -06:00
Jorik Schellekens
c68d135ae8
Use new eslint
2020-07-20 21:48:28 +01:00
dependabot[bot]
9ed6c99ec8
Bump lodash from 4.17.15 to 4.17.19
...
Bumps [lodash](https://github.com/lodash/lodash ) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases )
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-07-16 19:28:57 +00:00
Travis Ralston
7d398d41d0
Merge pull request #1419 from matrix-org/travis/general/perf/js-roomstate-map
...
[BREAKING] Convert RoomState's stored state map to a real map
2020-07-16 12:42:31 -06:00
Travis Ralston
0af763252c
Have the comment represent reality
2020-07-16 12:42:17 -06:00
Travis Ralston
1c9dbbbb19
[BREAKING] Convert RoomState's stored state map to a real map
...
Though the dictionary format works fine, it's slow. Access times are around the 1ms range for rooms like HQ, which doesn't seem like much, but when compared to the Map's access time of 0.05ms it's slow.
Converting things to a map means we lose index access and have to instead use `.keys()` and `.values()`, both of which return iterables and not arrays. Even doing the `Array.from()` conversion we see times in the 0.05ms range. This is also what makes this a breaking change.
Memory-wise there does not appear to be any measurable impact for a large account.
2020-07-08 22:28:14 -06:00
RiotRobot
2a688bdac8
v7.1.0
2020-07-03 13:15:07 +01:00
RiotRobot
3c53c818cb
Prepare changelog for v7.1.0
2020-07-03 13:15:07 +01:00
RiotRobot
8e53cb324e
v7.1.0-rc.1
2020-07-01 14:15:43 +01:00
RiotRobot
efbd454775
Prepare changelog for v7.1.0-rc.1
2020-07-01 14:15:43 +01:00
Bruno Windels
68c7273f56
Merge pull request #1414 from matrix-org/bwindels/fixbootstraperror
...
Ask general crypto callbacks for 4S privkey if operation adapter doesn't have it yet
2020-06-26 12:53:11 +00:00
Bruno Windels
8b56ff4eff
ask general crypto callbacks for 4S privkey if operation adapter doesn't
2020-06-26 10:59:04 +02:00
Michael Telatynski
8134eedd93
Merge pull request #1413 from matrix-org/t3chguy/hf
...
Fix ICreateClientOpts missing idBaseUrl
2020-06-25 23:34:31 +01:00
Michael Telatynski
a87ae770cc
Fix ICreateClientOpts missing idBaseUrl
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-06-25 21:58:15 +01:00
J. Ryan Stinnett
355da0f9a9
Merge pull request #1411 from matrix-org/jryans/more-room-listeners
...
Increase max event listeners for rooms
2020-06-25 13:54:11 +01:00
J. Ryan Stinnett
10bdd63762
Increase max event listeners for rooms
...
It's common to add listeners for every displayed Matrix event, so this increases
the default to remove some log noise.
2020-06-25 13:37:35 +01:00
Hubert Chathi
69dc518c2c
Merge pull request #1406 from matrix-org/uhoreg/distrust_backup
...
Don't trust keys megolm received from backup for verifying the sender
2020-06-23 15:37:27 -04:00
Hubert Chathi
fa1dddf06c
apply feedback from review
2020-06-23 15:20:41 -04:00
RiotRobot
f683f4544a
Merge branch 'master' into develop
2020-06-23 14:45:24 +01:00
RiotRobot
bc5b587651
v7.0.0
2020-06-23 14:42:09 +01:00
RiotRobot
8083031029
Prepare changelog for v7.0.0
2020-06-23 14:42:09 +01:00
Travis Ralston
7b8102a42c
Merge pull request #1410 from matrix-org/travis/room-list/setting-diff
...
Raise the last known account data / state event for an update
2020-06-22 14:10:16 -06:00
Travis Ralston
dbe2f5e4db
Fix lint
2020-06-22 10:24:02 -06:00
Travis Ralston
f27791b7de
Raise the last known account data / state event for an update
...
This is to better support the react-sdk in trying to identify what actually changed in settings instead of re-firing everything.
Overall this change differs from `prev_content` semantics as it's the last known *stored* event, not whatever the server thinks may or may not have changed.
2020-06-22 10:17:42 -06:00
Hubert Chathi
2a78170395
lint
2020-06-19 19:31:43 -04:00
Hubert Chathi
cfca1c7b06
add unit tests and improve docs
2020-06-19 19:27:29 -04:00
Hubert Chathi
fb7a67025f
add information function to return information about event encryption
2020-06-18 21:43:50 -04:00
Bruno Windels
8a6cd48b8e
Merge pull request #1380 from matrix-org/bwindels/bootstrap-operation
...
Isolate encryption bootstrap side-effects
2020-06-18 14:29:35 +00:00
David Baker
e21d1f539d
Merge pull request #1405 from matrix-org/dbkr/fix_verification_race
...
Add method to get current in-flight to-device requests
2020-06-18 15:10:58 +01:00
Bruno Windels
f62049559c
make authUploadDeviceSigningKeys required, as default is only used by tests
...
and make tests pass {} instead of undefined for authDict as otherwise
we'll enter in the "obtain flows" mode and not add the keys to the builder
2020-06-18 15:06:56 +02:00
Bruno Windels
1fe9dd03a3
apparently we call the callback also to obtain flows, so handle that
2020-06-18 14:39:16 +02:00
RiotRobot
c3283a7297
v7.0.0-rc.1
2020-06-17 21:33:36 +01:00
RiotRobot
f423164a1c
Prepare changelog for v7.0.0-rc.1
2020-06-17 21:33:35 +01:00
Bruno Windels
75fe596e24
fix tests
2020-06-17 15:36:24 +02:00
Bruno Windels
c5eb290e66
remove resetCrossSigningKeys
...
it was only used by the bootstrap method in js-sdk,
and was not used in react-sdk either.
This is a breaking change, in case anything other than react-sdk
was using this.
2020-06-17 15:34:30 +02:00
Bruno Windels
d3b2c8246d
remove try/finally as we don't monkey patch the callbacks anymore
2020-06-17 15:34:02 +02:00
Bruno Windels
c11796af4b
don't fix old key when we're force-creating a new one
2020-06-17 15:29:21 +02:00
Bruno Windels
8591815d66
add comment
2020-06-17 15:26:30 +02:00
Bruno Windels
b82870adb2
move key backup bootstrap/migration over to builder
2020-06-17 15:25:42 +02:00
Bruno Windels
3c5b304b6b
move cross-signing bootstrapping over to builder
2020-06-17 15:22:24 +02:00
Bruno Windels
f656698061
fixup: secret storage indenting
2020-06-17 15:14:26 +02:00
Bruno Windels
d4b4bc5031
move 4S creation to operation
2020-06-17 15:06:41 +02:00
Bruno Windels
9bcf33b6d3
Add EncryptionSetupBuilder to capture bootstrapping side-effects
2020-06-17 14:55:19 +02:00
Hubert Chathi
fa550e8f03
fix jsdoc
2020-06-16 12:03:29 -04:00
Hubert Chathi
2d73564eba
apply feedback from review, and improve js docs
2020-06-16 11:38:36 -04:00
David Baker
1bd80247fd
Better variable name
2020-06-16 14:27:26 +01:00
RiotRobot
1c194e8163
Merge branch 'master' into develop
2020-06-16 11:04:39 +01:00
RiotRobot
db7848c9ba
v6.2.2
2020-06-16 11:00:41 +01:00
RiotRobot
97497ed9d5
Prepare changelog for v6.2.2
2020-06-16 11:00:41 +01:00
J. Ryan Stinnett
60fcc652de
Merge pull request #1407 from matrix-org/jryans/1403-release
...
Use existing session id for fetching flows as to not get a new session
2020-06-16 10:56:00 +01:00
Michael Telatynski
cb57717424
undo that because {} sux
2020-06-16 10:38:41 +01:00
Michael Telatynski
590f7786eb
clean up
2020-06-16 10:38:41 +01:00
Michael Telatynski
0024edcb7f
Use existing session id for fetching flows as to not get a new session id
2020-06-16 10:38:41 +01:00
Michael Telatynski
aa2d0d9a08
Merge pull request #1404 from matrix-org/t3chguy/push-rules-device
...
Remove support for unspecced device-specific push rules
2020-06-16 10:26:08 +01:00
Hubert Chathi
fd126b8563
lint
2020-06-15 17:53:37 -04:00
Hubert Chathi
bc97e7a5ea
don't trust keys megolm received from backup for verifying the sender
2020-06-15 17:47:25 -04:00
David Baker
3dece4f46b
Add method to get current in-flight to-device requests
2020-06-15 17:38:50 +01:00
Michael Telatynski
be05452c70
Fix tests
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-06-14 13:15:28 +01:00
Michael Telatynski
583650cf7d
Remove support for unspecced device-specific push rules
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-06-13 14:49:49 +01:00
Michael Telatynski
505915528f
Merge pull request #1403 from matrix-org/t3chguy/attemptAuth-existing-session
...
Use existing session id for fetching flows as to not get a new session
2020-06-12 22:33:26 +01:00
Michael Telatynski
ace8a787b4
undo that because {} sux
2020-06-12 20:06:58 +01:00
Michael Telatynski
ed2ea9ac8e
clean up
2020-06-12 20:00:08 +01:00
Michael Telatynski
8d09a4abe6
Use existing session id for fetching flows as to not get a new session id
2020-06-12 19:50:38 +01:00
J. Ryan Stinnett
1da959ab02
Merge pull request #1400 from matrix-org/jryans/upgrade-deps-2020-06-05
...
Upgrade deps
2020-06-08 10:58:29 +01:00
J. Ryan Stinnett
997dd9b88a
Upgrade deps
2020-06-08 10:13:30 +01:00
RiotRobot
ebe66bdd6e
Merge branch 'master' into develop
2020-06-05 15:10:44 +01:00
RiotRobot
12b573bc63
v6.2.1
2020-06-05 15:07:04 +01:00
RiotRobot
cc8c163e0f
Prepare changelog for v6.2.1
2020-06-05 15:07:04 +01:00
Bruno Windels
abc7f76679
Merge pull request #1399 from matrix-org/bwindels/backupformatbug-rc
...
Bring back backup key format migration
2020-06-05 13:32:58 +00:00
Bruno Windels
eee04895fe
take into account key can be an object now
2020-06-05 15:26:17 +02:00
Bruno Windels
f520b88f79
fix type check in migration code
2020-06-05 15:26:17 +02:00
Bruno Windels
f0f1c113e4
Revert "remove key backup format migration"
...
This reverts commit 8d81240c58 .
2020-06-05 15:26:17 +02:00
Bruno Windels
84a15761ad
Revert "lint"
...
This reverts commit 9fe0e1e85f .
2020-06-05 15:26:17 +02:00
Bruno Windels
013fbb87a7
Merge pull request #1398 from matrix-org/bwindels/backupformatbug
...
Bring back backup key format migration
2020-06-05 13:25:00 +00:00
Bruno Windels
73764d23dc
take into account key can be an object now
2020-06-05 13:38:46 +02:00
Bruno Windels
8f62703bf2
fix type check in migration code
2020-06-05 13:38:15 +02:00
Bruno Windels
6dedae2e4d
Revert "remove key backup format migration"
...
This reverts commit 8d81240c58 .
2020-06-05 11:23:04 +02:00
Bruno Windels
d32131b2b8
Revert "lint"
...
This reverts commit 9fe0e1e85f .
2020-06-05 11:20:23 +02:00
Bruno Windels
0a790b2ae3
Merge pull request #1313 from matrix-org/bwindels/throwifcantdecrypt4s
...
Fix: more informative error message when we cant find a key to decrypt with
2020-06-05 08:30:43 +00:00
RiotRobot
ef1d5e3d76
Merge branch 'master' into develop
2020-06-04 15:00:26 +01:00
RiotRobot
30720bfdd7
v6.2.0
2020-06-04 14:57:14 +01:00
RiotRobot
234a18f016
Prepare changelog for v6.2.0
2020-06-04 14:57:14 +01:00
Michael Telatynski
c525a19df5
Merge pull request #1394 from matrix-org/t3chguy/e2eedefault
...
Add js-sdk mechanism for polling client well-known for config
2020-06-03 10:47:10 +01:00
Michael Telatynski
a987a31667
Merge pull request #1388 from matrix-org/dbkr/timeouts
...
Fix verification request timeouts to match spec
2020-06-03 10:41:15 +01:00
Michael Telatynski
10329c3436
rename _clientWellKnownInterval to _clientWellKnownIntervalID
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-06-03 10:26:46 +01:00
Travis Ralston
29f10bcd44
Merge pull request #1391 from matrix-org/hs/drop-presence-list
...
Drop presence list methods
2020-06-02 19:50:12 -06:00
Travis Ralston
19fe9b8ac7
Merge pull request #1395 from matrix-org/travis/less-previews
...
Batch up URL previews to prevent excessive requests
2020-06-02 14:33:04 -06:00
Travis Ralston
76da708352
Call the callback on cached
2020-06-02 14:19:41 -06:00
Travis Ralston
145f01ff2d
Batch up URL previews to prevent excessive requests
...
Cache expiration is still not implemented here.
2020-06-02 13:25:37 -06:00
RiotRobot
2c2d531e7f
v6.2.0-rc.1
2020-06-02 13:48:12 +01:00
RiotRobot
91e0f7fbc4
Prepare changelog for v6.2.0-rc.1
2020-06-02 13:48:12 +01:00
J. Ryan Stinnett
bebeec7d84
Merge pull request #1304 from MTRNord/fix-register-auth-with-new-spec
...
Make auth argument in the register request compliant with r0.6.0
2020-06-02 10:13:57 +01:00
Michael Telatynski
18b1e00875
Add js-sdk mechanism for polling client well-known for config
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-06-01 22:22:01 +01:00
Travis Ralston
86d448c285
Merge pull request #1393 from matrix-org/travis/uia-3pid
...
Send the wrong auth params with the right auth params
2020-06-01 09:14:39 -06:00
Travis Ralston
73f8867a6f
Send the wrong auth params with the right auth params
...
Followon from https://github.com/matrix-org/matrix-react-sdk/pull/4667
2020-06-01 09:08:58 -06:00
Will Hunt
d021498fa9
Drop presence lists
2020-06-01 11:29:06 +01:00
Michael Telatynski
b83aa54661
Test the verification request timeouts of 10m and 2m
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-05-29 14:49:35 +01:00
Michael Telatynski
429550ca3e
fix thing which got missed in the revert
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-05-29 13:54:08 +01:00
Michael Telatynski
2a6d8c2b1d
revert to previous observeOnly behaviour
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-05-29 13:34:19 +01:00
Michael Telatynski
01c9159830
clean up
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-05-29 13:17:22 +01:00
Michael Telatynski
3b3ed5159c
Implement verification request timeout as per the spec
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-05-29 13:10:25 +01:00
David Baker
636661dd45
WIP code for https://github.com/vector-im/riot-web/issues/12430
2020-05-29 09:53:03 +01:00
Hubert Chathi
0d7cb2bf25
Merge pull request #1387 from matrix-org/uhoreg/picklekey
...
encrypt cached keys with pickle key
2020-05-28 13:51:25 -04:00
Hubert Chathi
991f590056
another unit fix test
2020-05-27 23:32:23 -04:00
Hubert Chathi
0e6758ccbc
more unit test fixes
2020-05-27 23:21:15 -04:00
Hubert Chathi
1d9c6520e5
fix unit tests
2020-05-27 20:02:40 -04:00
Hubert Chathi
c81f11df0a
encrypt/decrypt cached private keys with pickle key
2020-05-27 19:34:28 -04:00
Travis Ralston
f39a1e70de
Fix the tests
2020-05-27 13:32:28 -06:00
Travis Ralston
f0fa249d36
Request fresh flows on the initial registration request
2020-05-27 13:16:10 -06:00
Travis Ralston
8f72197817
Merge branch 'develop' into fix-register-auth-with-new-spec
2020-05-27 12:14:42 -06:00
Hubert Chathi
1556ac84da
add a pickle key option to the client
2020-05-27 12:57:00 -04:00
David Baker
b6da6bb835
Merge pull request #1385 from Sorunome/patch-1
...
Fix replying to key share requests
2020-05-26 12:10:44 +01:00
Sorunome
b1a882ea79
Fix replying to key share requests
...
This check was meant to filter out key sharing requests from ourselves. Accidentally, it filtered out sharing requests from anyone *but* ourselves.
2020-05-26 13:04:31 +02:00
Michael Telatynski
3305f2cc72
Merge pull request #1384 from matrix-org/t3chguy/cdn
...
Add dist to package.json files so CDNs can serve it
2020-05-25 15:56:26 +01:00
Michael Telatynski
c589a5211b
Add dist to package.json files so CDNs can serve it
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-05-25 14:29:50 +01:00
Michael Telatynski
ff0d91979b
Merge pull request #1382 from matrix-org/t3chguy/fix_getVersion_warning
...
Fix getVersion warning saying undefined room
2020-05-22 14:44:11 +01:00
Michael Telatynski
9d6888cf74
Fix getVersion warning saying undefined room
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-05-22 14:21:51 +01:00
David Baker
a4a7097c10
Merge pull request #1379 from matrix-org/dbkr/combine_default_rules_processing
...
Combine the two places we processed client-level default push rules
2020-05-21 15:11:46 +01:00
David Baker
cf2b058e7c
Update comment on default override rules
2020-05-21 10:06:12 +01:00
Hubert Chathi
048d7a9b63
Merge pull request #1378 from matrix-org/uhoreg/fix_mac_check
...
make MAC check robust against unpadded vs padded base64 differences
2020-05-20 12:05:35 -04:00
David Baker
d6e37d0288
Combine the two places we processed client-level default push rules
...
We did this in two places: updated existing rules when the rules
were stored and then added new ones every time we computed push
action for an event. Just do both when the rules are saved.
2020-05-20 14:52:37 +01:00
Bruno Windels
3cd562fa96
Merge pull request #1375 from matrix-org/bwindels/remove-keybackup-format-migration
...
Remove key backup format migration
2020-05-20 08:05:28 +00:00
Michael Telatynski
bd569cb041
Merge pull request #1241 from matrix-org/t3chguy/fix_unhomoglyph_import
...
Add simple browserify browser-matrix.js tests
2020-05-19 11:58:35 +01:00
RiotRobot
e3c6a0e1a0
Merge branch 'master' into develop
2020-05-19 11:04:15 +01:00
RiotRobot
b29176507c
v6.1.0
2020-05-19 11:01:13 +01:00
RiotRobot
db25e9719b
Prepare changelog for v6.1.0
2020-05-19 11:01:13 +01:00
Michael Telatynski
661901b00d
tidy up
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-05-18 20:11:32 +01:00
Michael Telatynski
b9352cfcc1
Fix tests
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-05-18 20:03:04 +01:00
Michael Telatynski
e381b1901e
clean up test
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-05-18 19:39:30 +01:00
Hubert Chathi
ebdff505eb
make MAC check robust against unpadded vs padded base64 differences
2020-05-15 16:52:53 -04:00
Michael Telatynski
f806e4342e
Add simple browserify sync test
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-05-15 18:56:09 +01:00
Michael Telatynski
7f32d7d320
revert
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-05-15 16:55:00 +01:00
Michael Telatynski
b1b4b21d45
Merge branches 'develop' and 't3chguy/fix_unhomoglyph_import' of github.com:matrix-org/matrix-js-sdk into t3chguy/fix_unhomoglyph_import
...
Conflicts:
src/utils.ts
2020-05-15 16:50:23 +01:00
Hubert Chathi
486e8b5445
Merge pull request #1376 from matrix-org/uhoreg/sas2
...
support new key agreement method for SAS
2020-05-15 10:59:11 -04:00
Bruno Windels
9fe0e1e85f
lint
2020-05-15 13:44:10 +02:00
Bruno Windels
8d81240c58
remove key backup format migration
2020-05-15 12:37:41 +02:00
Hubert Chathi
bdadcd4532
support new key agreement method for SAS
2020-05-14 16:14:45 -04:00
RiotRobot
1de9a24677
v6.1.0-rc.1
2020-05-14 16:06:17 +01:00
RiotRobot
6335f14a34
Prepare changelog for v6.1.0-rc.1
2020-05-14 16:06:16 +01:00
Bruno Windels
da2ef381ac
Merge pull request #1373 from matrix-org/bwindels/remove-asym-4s
...
Remove support for asymmetric 4S encryption
2020-05-14 08:10:01 +00:00
Bruno Windels
7b173f4c74
don't sign 4S keys anymore
2020-05-13 10:38:03 +02:00
Bruno Windels
d49eb0bbc4
remove upgrade path from asym to sym 4S algorithm
2020-05-13 10:38:03 +02:00
Bruno Windels
91556d5bcd
fix lint
2020-05-13 10:38:03 +02:00
Bruno Windels
039abe1f75
remove tests for upgrade path
2020-05-12 14:53:50 +02:00
Bruno Windels
bc32faf467
don't sign/verify 4s key with cross signing master key anymore
2020-05-12 14:49:20 +02:00
Bruno Windels
74a4dfeb67
remove support for asym 4s enc
2020-05-12 14:29:54 +02:00
RiotRobot
f120533fad
Merge branch 'master' into develop
2020-05-05 11:01:32 +01:00
RiotRobot
a1baf39299
v6.0.0
2020-05-05 10:54:38 +01:00
RiotRobot
9f0f1bcc68
Prepare changelog for v6.0.0
2020-05-05 10:54:37 +01:00
J. Ryan Stinnett
246963e181
Merge pull request #1368 from matrix-org/foldleft/13167-spinner-progress-rc
...
Add progress callback for key backups
2020-05-04 16:34:38 +01:00
Zoe
e3134ab0de
satisfy linter 2, now with more self-hatred
2020-05-04 16:25:43 +01:00
Zoe
b38d52da72
satisfy the linter
2020-05-04 16:25:43 +01:00
Zoe
411c4f40d9
docs
2020-05-04 16:25:43 +01:00
Zoe
694a85b652
lint
2020-05-04 16:25:43 +01:00
Zoe
c84e72f53a
Added a progressCallback for backup key loading
2020-05-04 16:25:43 +01:00
David Baker
cb7e1a9d82
Merge pull request #1367 from matrix-org/dbkr/increase_olm_second_phase_timeout
...
Increase timeout for 2nd phase of Olm session creation
2020-05-01 18:32:25 +01:00
David Baker
3c9dfc195e
Increase timeout for 2nd phase of Olm session creation
...
The timeouts on the two phases of olm session creation are 2 and 10
seconds respectively, so sessions will fail if servers take more
than 10s to respond. Now that we have two phases, we can afford to
wait longer on the second one because the user's isn't waiting for
it to finish before the message will send, so increase it to 30s
so servers have more of a chance to respond.
2020-05-01 18:25:25 +01:00
David Baker
a5c13041c6
Merge pull request #1366 from matrix-org/dbkr/retry_decryption_logging
...
Add logging on decryption retries
2020-05-01 17:49:13 +01:00
David Baker
d699e98346
Add logging on decryption retries
...
For https://github.com/vector-im/riot-web/issues/13473
2020-05-01 17:36:49 +01:00
RiotRobot
135a76febd
v6.0.0-rc.2
2020-05-01 16:18:21 +01:00
RiotRobot
fae2856e7e
Prepare changelog for v6.0.0-rc.2
2020-05-01 16:18:21 +01:00
David Baker
98426b6186
Merge pull request #1365 from matrix-org/dbkr/emit_on_store_trusted_master_key_rel
...
Emit event when a trusted self-key is stored
2020-05-01 15:37:09 +01:00
David Baker
a63d9d2ccd
lint
2020-05-01 15:28:15 +01:00
David Baker
c567139e28
Emit event when a trusted self-key is stored
...
This will cause our own user trust status to change, so emit an
event to say so.
2020-05-01 15:28:09 +01:00
David Baker
3d495b0753
Merge pull request #1364 from matrix-org/dbkr/emit_on_store_trusted_master_key
...
Emit event when a trusted self-key is stored
2020-05-01 15:27:36 +01:00
David Baker
4946b55c21
lint
2020-05-01 15:13:02 +01:00
David Baker
ad7d7154f4
Emit event when a trusted self-key is stored
...
This will cause our own user trust status to change, so emit an
event to say so.
2020-05-01 15:01:13 +01:00
Zoe
e5b6a9f8cb
Merge pull request #1352 from matrix-org/foldleft/12252-large-err
...
Customize error payload for oversized messages
2020-05-01 09:44:43 +01:00
Zoe
04f27d36ef
Update src/crypto/OlmDevice.js
...
Co-authored-by: Travis Ralston <travpc@gmail.com >
2020-05-01 09:40:11 +01:00
J. Ryan Stinnett
683fc98fdc
Merge pull request #1363 from matrix-org/jryans/key-backup-network-fail
...
Return null for key backup state when we haven't checked yet
2020-04-30 17:21:09 +01:00
J. Ryan Stinnett
c303e83444
Return null for key backup state when we haven't checked yet
...
This allows distinguishing the "unknown" case from "not present".
Part of https://github.com/vector-im/riot-web/issues/13404
2020-04-30 15:40:27 +01:00
J. Ryan Stinnett
ae5a40d686
Only consider key backup checked in error if 404
...
Other error codes are likely to mean we never actually reached the server at
all, so we should not consider that as checked.
Part of https://github.com/vector-im/riot-web/issues/13404
2020-04-30 15:22:50 +01:00
Zoe
409b7068bb
Merge pull request #1351 from matrix-org/foldleft/13167-spinner-progress
...
Added a progressCallback for backup key loading
2020-04-30 14:09:16 +01:00
Zoe
f2a12c7154
satisfy linter 2, now with more self-hatred
2020-04-30 14:06:20 +01:00
Zoe
efac2eac07
satisfy the linter
2020-04-30 12:04:29 +01:00
RiotRobot
f3f6f3e39a
v6.0.0-rc.1
2020-04-30 11:14:04 +01:00
RiotRobot
f905586dbd
Prepare changelog for v6.0.0-rc.1
2020-04-30 11:14:03 +01:00
David Baker
f393cea2c2
Merge pull request #1362 from matrix-org/dbkr/sessions_there_on_login_are_old_rel
...
Add initialFetch param to willUpdateDevices / devicesUpdated
2020-04-29 18:14:13 +01:00
David Baker
e937998b40
Add initialFetch param to willUpdateDevices / devicesUpdated
...
This indicates whether the device database is being populated initially
2020-04-29 17:44:25 +01:00
David Baker
f85ec08886
Merge pull request #1360 from matrix-org/dbkr/sessions_there_on_login_are_old
...
Add initialFetch param to willUpdateDevices / devicesUpdated
2020-04-29 17:42:12 +01:00
J. Ryan Stinnett
7ff68f3844
Merge pull request #1361 from matrix-org/bwindels/fixrequestreadyrace-rc
...
Fix race between sending .request and receiving .ready over to_device
2020-04-29 17:26:11 +01:00
Bruno Windels
04529bd524
add to_device verif request to txnId -> request map before sending
...
so if the .ready event arrives before the request finishes,
it still ends up in the correct VerificationRequest
2020-04-29 18:20:16 +02:00
Bruno Windels
2c681d93d9
Merge pull request #1359 from matrix-org/bwindels/fixrequestreadyrace
...
Fix race between sending .request and receiving .ready over to_device
2020-04-29 16:19:31 +00:00
David Baker
1451fcb040
Add initialFetch param to willUpdateDevices / devicesUpdated
...
This indicates whether the device database is being populated initially
2020-04-29 17:01:50 +01:00
Zoe
4986f3c2ca
docs
2020-04-29 16:55:27 +01:00
Bruno Windels
e9edb85a32
add to_device verif request to txnId -> request map before sending
...
so if the .ready event arrives before the request finishes,
it still ends up in the correct VerificationRequest
2020-04-29 17:51:32 +02:00
J. Ryan Stinnett
dca60ae4ae
Merge pull request #1358 from matrix-org/bwindels/fixwaitforeventrace-rc
...
Handle race between sending and await next event from other party
2020-04-29 15:21:35 +01:00
Bruno Windels
025f964b0b
Merge pull request #1357 from matrix-org/bwindels/fixwaitforeventrace
...
Handle race between sending and await next event from other party
2020-04-29 13:53:35 +00:00
Bruno Windels
ff46a8fa9e
handle race between sending and await next event from other party
2020-04-29 15:52:20 +02:00
Bruno Windels
59412aba51
handle race between sending and await next event from other party
2020-04-29 15:45:51 +02:00
David Baker
a351ee9f76
Merge pull request #1356 from matrix-org/dbkr/another_round_of_toast_rel
...
Add crypto.willUpdateDevices event and make getStoredDevices/getStoredDevicesForUser synchronous
2020-04-29 12:50:00 +01:00
David Baker
a5b14092cd
Make getStoredDevice calls sync
2020-04-29 12:23:03 +01:00
David Baker
90f1de9c3f
Add crypto.willUpdateDevices event and make getStoredDevices/getStoredDevicesForUser synchronous
...
Add an event fired before devices are updated, so apps can monitor
changes in devices by observing the state before and after.
BREAKING CHANGE:
Make getStoredDevices/getStoredDevicesForUser synchronous so they
can safely be called from the event listener without racing with
the data being updated. They didn't do any async work so didn't need
to be async.
Add doc for crypto.devicesUpdated
2020-04-29 12:23:00 +01:00
David Baker
a516f06946
Merge pull request #1354 from matrix-org/dbkr/another_round_of_toast
...
Add crypto.willUpdateDevices event and make getStoredDevices/getStoredDevicesForUser synchronous
2020-04-29 12:09:11 +01:00
David Baker
7c1f3e4519
Make getStoredDevice calls sync
2020-04-29 11:50:18 +01:00
Michael Telatynski
3bb1a6336b
Merge pull request #1350 from matrix-org/t3chguy/redaction_redesign
...
Fix sender of local echo events in unsigned redactions
2020-04-29 11:17:28 +01:00
J. Ryan Stinnett
7dc926596f
Merge pull request #1355 from matrix-org/jryans/rm-extra-key-backup-setup-rc
...
Remove redundant key backup setup path
2020-04-29 09:46:17 +01:00
J. Ryan Stinnett
e775515c38
Remove the other copy instead
2020-04-28 21:34:17 +01:00
J. Ryan Stinnett
c116f2b1bc
Remove redundant key backup setup path
...
Bootstrap was create key backup twice due to some code duplication we missed in
previous refactorings.
Fixes https://github.com/vector-im/riot-web/issues/13423
2020-04-28 21:34:17 +01:00
J. Ryan Stinnett
f24993d6aa
Merge pull request #1353 from matrix-org/jryans/rm-extra-key-backup-setup
...
Remove redundant key backup setup path
2020-04-28 21:33:49 +01:00
David Baker
f053cf1fdb
Add crypto.willUpdateDevices event and make getStoredDevices/getStoredDevicesForUser synchronous
...
Add an event fired before devices are updated, so apps can monitor
changes in devices by observing the state before and after.
BREAKING CHANGE:
Make getStoredDevices/getStoredDevicesForUser synchronous so they
can safely be called from the event listener without racing with
the data being updated. They didn't do any async work so didn't need
to be async.
Add doc for crypto.devicesUpdated
2020-04-28 18:31:04 +01:00
J. Ryan Stinnett
251318eaf0
Remove the other copy instead
2020-04-28 17:20:49 +01:00
J. Ryan Stinnett
a66e7d79ad
Remove redundant key backup setup path
...
Bootstrap was create key backup twice due to some code duplication we missed in
previous refactorings.
Fixes https://github.com/vector-im/riot-web/issues/13423
2020-04-28 16:56:37 +01:00
Zoe
38884083a2
Customize error payload for oversized messages
2020-04-28 16:39:35 +01:00
Zoe
0b1088d9a8
lint
2020-04-28 11:31:41 +01:00
Zoe
875f9ca388
Added a progressCallback for backup key loading
2020-04-28 11:28:39 +01:00
David Baker
25cd1f25f1
Merge pull request #1349 from matrix-org/dbkr/retryDecryption_remove_dead_code
...
Remove some dead code from _retryDecryption
2020-04-28 11:23:53 +01:00
Michael Telatynski
7152ece70a
Fix sender of local echo events in unsigned redactions
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-04-27 23:52:22 +01:00
David Baker
896c76ce9d
Merge pull request #1348 from matrix-org/dbkr/keyrequest_wait_sync_process
...
Don't send key requests until after sync processing is finished
2020-04-24 14:38:54 +01:00
David Baker
21d3dd4506
Remove some dead code from _retryDecryption
...
I think this was attempting to remove the events from _pendingEvents
but a) it wasn't and b) it probably shouldn't be because the retry
itself will re-add them when the decryption attempt starts and remove
them if it succeeds.
Also fix what was presumably a c+p fail.
2020-04-24 14:36:42 +01:00
David Baker
300b32c8d7
Let's keep starting the timer for the retries straight away
...
rather than leaving them until next time the queue is sent
2020-04-24 13:16:07 +01:00
David Baker
19e3b35fc7
Fix immediate key request sending
2020-04-24 11:26:48 +01:00
David Baker
320811f9ed
Don't send key requests until after sync processing is finished
...
Key requests wait for a short time (500ms) before being sent as
an attempt to wait for the key to arrive before sending a request
for it, but client startup takes way longer than this so this
would still result in key requests being sent for keys that we'd
fetched but were still waiting to be read out of the sync response
and put into the database.
2020-04-24 11:19:52 +01:00
David Baker
991457496f
Merge pull request #1346 from matrix-org/dbkr/dont_talk_to_ourself
...
Prevent attempts to send olm messages to ourselves
2020-04-23 16:10:36 +01:00
RiotRobot
1cb6134758
v5.3.1-rc.4
2020-04-23 15:41:07 +01:00
RiotRobot
a255b8e450
Prepare changelog for v5.3.1-rc.4
2020-04-23 15:41:07 +01:00
Bruno Windels
324f036b35
Merge pull request #1347 from matrix-org/bwindels/retry4s-rc
...
Retry account data upload requests
2020-04-23 14:33:36 +00:00
Bruno Windels
479a284e10
move fn to http-api and add jsdoc
2020-04-23 16:29:08 +02:00
Bruno Windels
e0660ce01c
log while retrying
2020-04-23 16:29:07 +02:00
Bruno Windels
3a3f6cb7ca
cleanup, return straight away
2020-04-23 16:29:07 +02:00
Bruno Windels
9797e6021b
exclude aborted requests and matrix errors when creating connectionerror
...
- throw an AbortError when aborting is detected
- don't turn AbortError's into a ConnectionError
- also consider the string "aborted" an AbortError for unit tests
- unit tests like to reject the request with a MatrixError,
so exclude those too
2020-04-23 16:29:07 +02:00
Bruno Windels
a9212d33b1
retry PUT account data requests
2020-04-23 16:29:07 +02:00
Bruno Windels
d32d3fd864
retry util function
2020-04-23 16:29:07 +02:00
Bruno Windels
a19cdd06cf
throw ConnectionError when request fails
2020-04-23 16:29:07 +02:00
Bruno Windels
f4d0f89fda
cleanup: use class for MatrixError
...
this way we get stacktraces as well
2020-04-23 16:29:07 +02:00
Bruno Windels
ca34cb951e
Merge pull request #1345 from matrix-org/bwindels/retry4s
...
Retry account data upload requests
2020-04-23 14:28:31 +00:00
David Baker
4c2d1b0385
typo
...
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com >
2020-04-23 14:40:17 +01:00
Bruno Windels
6b4fefc123
move fn to http-api and add jsdoc
2020-04-23 15:32:40 +02:00
Bruno Windels
86913dccb0
log while retrying
2020-04-23 15:25:10 +02:00
Bruno Windels
30101a4428
cleanup, return straight away
2020-04-23 15:22:46 +02:00
Bruno Windels
668e8f6f24
exclude aborted requests and matrix errors when creating connectionerror
...
- throw an AbortError when aborting is detected
- don't turn AbortError's into a ConnectionError
- also consider the string "aborted" an AbortError for unit tests
- unit tests like to reject the request with a MatrixError,
so exclude those too
2020-04-23 15:18:52 +02:00
David Baker
2f51e206c7
Prevent attempts to send olm messages to ourselves
...
The cause of this I've seen is us sending keyshare reqiests when
we didn't have keys but them arriving when we do, and us replying to
ourseles with keys, so exclude that explicity.
Also catch this lower down to catch any other code paths that
mistaklenly try this. Hopefully the comment explains enough as to why
it won't work.
2020-04-23 13:36:54 +01:00
Bruno Windels
78b8b36a87
retry PUT account data requests
2020-04-23 13:37:56 +02:00
Bruno Windels
af3ef86d19
retry util function
2020-04-23 13:37:33 +02:00
Bruno Windels
50febaf477
throw ConnectionError when request fails
2020-04-23 13:37:10 +02:00
Bruno Windels
907f317b04
cleanup: use class for MatrixError
...
this way we get stacktraces as well
2020-04-23 13:36:40 +02:00
David Baker
6edb78d015
Merge pull request #1344 from matrix-org/dbkr/log_megolm_session_first_index
...
Log first known index with megolm session updates
2020-04-23 12:30:48 +01:00
David Baker
b58846ab6e
Log first known index with megolm session updates
...
Move the logging lower to a point where we know the first index.
2020-04-23 11:43:22 +01:00
David Baker
32233a2c7b
Merge pull request #1343 from matrix-org/dbkr/prune_todevice_messages
...
Prune to_device messages to avoid sending empty messages
2020-04-22 13:54:29 +01:00
David Baker
8b2752441d
Prune to_device messages to avoid sending empty messages
...
Fixes https://github.com/vector-im/riot-web/issues/13322
2020-04-22 13:48:57 +01:00
Michael Telatynski
e6af29df94
Merge pull request #1335 from matrix-org/t3chguy/ts1
...
Convert bunch of things to TypeScript
2020-04-22 10:26:53 +01:00
David Baker
4ae5404fe4
Merge pull request #1342 from matrix-org/dbkr/log_new_olm_sessions
...
Add logging when making new Olm sessions
2020-04-22 09:47:44 +01:00
David Baker
7f0bdc8ddb
Add logging when making new Olm sessions
2020-04-21 18:31:36 +01:00
Bruno Windels
39836f115b
Merge pull request #1341 from matrix-org/bwindels/fixfilterlookup-rc
...
Fix: handle filter not found
2020-04-21 14:15:03 +00:00
Bruno Windels
4a699fe6a7
Merge pull request #1340 from matrix-org/bwindels/fixfilterlookup
...
Fix: handle filter not found
2020-04-21 14:13:33 +00:00
David Baker
7cc61a887c
Merge pull request #1339 from matrix-org/dbkr/getAccountDataFromServer_404_rel
...
Make getAccountDataFromServer return null if not found
2020-04-21 15:10:20 +01:00
David Baker
8f73f1ed3c
Merge pull request #1338 from matrix-org/dbkr/getAccountDataFromServer_404
...
Make getAccountDataFromServer return null if not found
2020-04-21 15:10:13 +01:00
Bruno Windels
67fb027d39
filter out invalid filter id values like 'undefined'
...
this way we don't attempt to fetch filters when validating them
with filterId==="undefined"
2020-04-21 16:00:45 +02:00
Bruno Windels
c6b61ea0ea
Fix unknown filters returning 400 rather than 404
...
This made getFilter in sync retrying continuously
I also refactored getOrCreateFilter to use await
2020-04-21 16:00:45 +02:00
Bruno Windels
32841234a7
filter out invalid filter id values like 'undefined'
...
this way we don't attempt to fetch filters when validating them
with filterId==="undefined"
2020-04-21 15:56:39 +02:00
Bruno Windels
6f6520ed0f
Fix unknown filters returning 400 rather than 404
...
This made getFilter in sync retrying continuously
I also refactored getOrCreateFilter to use await
2020-04-21 15:54:50 +02:00
David Baker
b3860f3754
Make getAccountDataFromServer return null if not found
...
Callers assume that if the account data isn't there, the method will
return null rather than throw an exception. This meant that this only
actually worked in these cases when the sync had completed and it was
using the locally stored account data, so this ceased to be a
problem in practice when we made it wait for the initial sync to finish
before entering the security setup flow.
Fixes https://github.com/vector-im/riot-web/issues/13169
2020-04-21 14:32:26 +01:00
David Baker
0958917317
Make getAccountDataFromServer return null if not found
...
Callers assume that if the account data isn't there, the method will
return null rather than throw an exception. This meant that this only
actually worked in these cases when the sync had completed and it was
using the locally stored account data, so this ceased to be a
problem in practice when we made it wait for the initial sync to finish
before entering the security setup flow.
Fixes https://github.com/vector-im/riot-web/issues/13169
2020-04-21 14:28:10 +01:00
David Baker
f42fa7e791
Merge pull request #1337 from matrix-org/dbkr/setdefaultkey_fail_rel
...
Fix setDefaultKeyId to fail if the request fails
2020-04-21 14:21:42 +01:00
David Baker
7022d1f3bf
Merge pull request #1336 from matrix-org/dbkr/setdefaultkey_fail
...
Fix setDefaultKeyId to fail if the request fails
2020-04-21 14:21:35 +01:00
David Baker
b592c41f96
Fix setDefaultKeyId to fail if the request fails
...
It returned only when the echo came down the sync stream, but we
forgot to make it fail if the reuqest failed and it would just
never return in this case.
Fixes https://github.com/vector-im/riot-web/issues/13162
2020-04-21 13:52:48 +01:00
David Baker
62188571d7
Fix setDefaultKeyId to fail if the request fails
...
It returned only when the echo came down the sync stream, but we
forgot to make it fail if the reuqest failed and it would just
never return in this case.
Fixes https://github.com/vector-im/riot-web/issues/13162
2020-04-21 13:50:21 +01:00
Michael Telatynski
8cca3392f6
fix localStorage type
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-04-21 12:03:25 +01:00
Michael Telatynski
7082516664
Improve ts types and enable esModuleInterop
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-04-21 11:55:56 +01:00
Michael Telatynski
77a1fc9e60
Convert bunch of things to TypeScript
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-04-21 11:45:54 +01:00
Travis Ralston
e2b1dd6532
Merge pull request #1328 from MichaelKohler/issue905-setRoomEncryption-doc
...
Document setRoomEncryption not modifying room state
2020-04-21 00:30:14 -06:00
Bruno Windels
7b7fdb0a65
Merge pull request #1333 from matrix-org/bwindels/onlyonefilterplease-rc
...
Fix: don't do extra /filter request when enabling lazy loading of members
2020-04-20 16:36:26 +00:00
Bruno Windels
414279f644
Merge pull request #1332 from matrix-org/bwindels/onlyonefilterplease
...
Fix: don't do extra /filter request when enabling lazy loading of members
2020-04-20 16:24:52 +00:00
Bruno Windels
be91c8580d
rename build function
2020-04-20 18:22:30 +02:00
Bruno Windels
befaa782f6
when enabling LL, set the flag on Filter, rather than doing /filter
2020-04-20 18:22:30 +02:00
Bruno Windels
8e29dae36a
rename build function
2020-04-20 18:06:10 +02:00
Bruno Windels
d2438d10a6
when enabling LL, set the flag on Filter, rather than doing /filter
2020-04-20 17:26:19 +02:00
David Baker
b3752bb2c6
Merge pull request #1331 from matrix-org/dbkr/fix_reject_no_auth_flow_found_rel
...
Reject attemptAuth promise if no auth flow found
2020-04-20 13:38:49 +01:00
Michael Kohler
02e145b0de
Reject attemptAuth promise if no auth flow found
2020-04-20 13:34:18 +01:00
David Baker
0fcf8777a1
Merge pull request #1329 from MichaelKohler/fix-reject-no-auth-flow-found
...
Reject attemptAuth promise if no auth flow found
2020-04-20 13:06:44 +01:00
J. Ryan Stinnett
26cae5543b
Merge pull request #1330 from matrix-org/dbkr/serialise_prekey_decryptions_rel
...
Serialise Olm prekey decryptions
2020-04-20 10:14:24 +01:00
David Baker
b0573dec77
Add a catch so the error doesn't propagate to later decryptions
2020-04-20 10:08:13 +01:00
David Baker
c5f4e762e5
Serialise Olm prekey decryptions
...
If they overlap, they can both try to create new sessions, but this
removes the OTK so it will only work once.
Fixes https://github.com/vector-im/riot-web/issues/13229
2020-04-20 10:08:07 +01:00
Michael Kohler
f4c08477d0
Reject attemptAuth promise if no auth flow found
2020-04-19 14:04:10 +02:00
Michael Kohler
4342ee6d4a
Document setRoomEncrption not modifying room state ( fixes #905 )
2020-04-18 19:49:05 +02:00
Michael Telatynski
7b73561923
Merge pull request #1327 from nchamo/fix-filter-component-check
...
Fix FilterComponent allowed_values check
2020-04-18 14:45:31 +01:00
Nicolas Chamo
87c0cf233c
Update src/filter-component.js
...
Co-Authored-By: Michael Telatynski <7t3chguy@googlemail.com >
2020-04-17 23:59:38 -03:00
Nicolas Chamo
145cd7894b
More lint fixes
2020-04-17 19:56:32 -03:00
Nicolas Chamo
6cf8a76c29
linting
2020-04-17 19:50:15 -03:00
nchamo
7ea09ebe4a
Add fix and test
...
Signed-off-by: Nicolas Chamo <nicolas@chamo.com.ar >
2020-04-17 19:37:33 -03:00
David Baker
1dcb16365b
Merge pull request #1326 from matrix-org/dbkr/serialise_prekey_decryptions
...
Serialise Olm prekey decryptions
2020-04-17 18:07:24 +01:00
David Baker
83b33d9d7a
Add a catch so the error doesn't propagate to later decryptions
2020-04-17 18:03:15 +01:00
David Baker
83879fa945
Serialise Olm prekey decryptions
...
If they overlap, they can both try to create new sessions, but this
removes the OTK so it will only work once.
Fixes https://github.com/vector-im/riot-web/issues/13229
2020-04-17 17:47:46 +01:00
RiotRobot
c3903f2796
v5.3.1-rc.3
2020-04-17 17:35:49 +01:00
RiotRobot
18564553ad
Prepare changelog for v5.3.1-rc.3
2020-04-17 17:35:48 +01:00
J. Ryan Stinnett
fe3e87a9d6
Merge pull request #1323 from matrix-org/dbkr/fix_ssss_reset_rel
...
Fix cross-signing/SSSS reset
2020-04-17 13:42:47 +01:00
Bruno Windels
78c734d2e9
Merge pull request #1325 from matrix-org/bwindels/fixkeybackupcrash-rc
...
Fix: crash when backup key needs fixing from corruption issue
2020-04-17 12:23:08 +00:00
Bruno Windels
5afa16d454
method is on crypto
2020-04-17 14:19:55 +02:00
Bruno Windels
57233416d9
Merge pull request #1324 from matrix-org/bwindels/fixkeybackupcrash
...
Fix: crash when backup key needs fixing from corruption issue
2020-04-17 12:11:07 +00:00
Bruno Windels
f56ce29210
method is on crypto
2020-04-17 13:51:12 +02:00
David Baker
149f59e9be
lint
2020-04-16 20:42:00 +01:00
David Baker
761892d6b1
Fix cross-signing/SSSS reset
...
We re-used the old SSSS key even when resetting, meaning we prompted
the user to create a new passphrase but then ignored it and kept using
the old one.
Fixes https://github.com/vector-im/riot-web/issues/13212
2020-04-16 20:41:55 +01:00
David Baker
4b639d5f9a
Merge pull request #1322 from matrix-org/dbkr/fix_ssss_reset
...
Fix cross-signing/SSSS reset
2020-04-16 20:38:47 +01:00
David Baker
da8ed77aae
lint
2020-04-16 20:18:27 +01:00
David Baker
12f46909f7
Fix cross-signing/SSSS reset
...
We re-used the old SSSS key even when resetting, meaning we prompted
the user to create a new passphrase but then ignored it and kept using
the old one.
Fixes https://github.com/vector-im/riot-web/issues/13212
2020-04-16 20:13:18 +01:00
RiotRobot
faf18b1996
v5.3.1-rc.2
2020-04-16 18:39:06 +01:00
RiotRobot
218deddd00
Prepare changelog for v5.3.1-rc.2
2020-04-16 18:39:06 +01:00
Bruno Windels
d6fe650c4c
Merge pull request #1321 from matrix-org/bwindels/untrustedqrcodereciprocate-rc
...
Implement QR code reciprocate for self-verification with untrusted MSK
2020-04-16 12:38:04 +00:00
Bruno Windels
919189db1a
Merge pull request #1320 from matrix-org/bwindels/untrustedqrcodereciprocate
...
Implement QR code reciprocate for self-verification with untrusted MSK
2020-04-16 12:34:46 +00:00
Bruno Windels
951191d99a
update comments
2020-04-16 14:31:44 +02:00
Bruno Windels
f814a96eac
update comments
2020-04-16 14:30:51 +02:00
Bruno Windels
2654f4bf0f
implement qr code reciprocate for self-verif with untrusted MSK
2020-04-16 13:26:56 +02:00
Bruno Windels
218aa423c3
implement qr code reciprocate for self-verif with untrusted MSK
2020-04-16 13:01:46 +02:00
RiotRobot
195f3a7550
v5.3.1-rc.1
2020-04-15 19:05:12 +01:00
RiotRobot
1c9343ed8f
Prepare changelog for v5.3.1-rc.1
2020-04-15 19:05:11 +01:00
RiotRobot
5c7d9981f8
Merge branch 'release-v5.3.0' into release-v5.3.1
2020-04-15 19:02:40 +01:00
J. Ryan Stinnett
63bc17a6b4
Merge pull request #1319 from matrix-org/jryans/release-script
...
Adapt release script for riot-desktop
2020-04-15 18:26:04 +01:00
J. Ryan Stinnett
629490c4ae
Adapt release script for riot-desktop
...
This allows the bulk of the release script to be used for riot-desktop, while
skipping the NPM and develop branch parts that do not apply.
Part of https://github.com/vector-im/riot-web/issues/13176
2020-04-15 18:10:46 +01:00
Bruno Windels
d59d62f96a
Merge pull request #1318 from matrix-org/bwindels/fixindexernotifs
...
Fix: prevent spurious notifications from indexer
2020-04-15 16:50:18 +00:00
Bruno Windels
8a460c2368
fix jsdoc
2020-04-15 18:33:55 +02:00
Bruno Windels
6f60183316
allow creating event mappers that map events whose events are not reemitted
2020-04-15 17:08:25 +02:00
J. Ryan Stinnett
a21c62519b
Merge pull request #1317 from matrix-org/jryans/gen-user-obj
...
Always create our own user object
2020-04-14 16:19:45 +01:00
J. Ryan Stinnett
1b8f6d1739
Always create our own user object
...
This ensures our own user object is always available for tasks like
verification, even if you aren't in any rooms.
Fixes https://github.com/vector-im/riot-web/issues/13165
2020-04-14 16:02:00 +01:00
Hubert Chathi
e087bce61a
Merge pull request #1311 from matrix-org/uhoreg/fix_backup_key_format
...
Fix incorrect backup key format in SSSS
2020-04-13 17:38:45 -04:00
Hubert Chathi
d2f24c3e87
cut long line to appease lint
2020-04-13 17:03:17 -04:00
Hubert Chathi
5d606bba66
add test for passthrough on backups
2020-04-13 16:54:02 -04:00
Hubert Chathi
864fe459b7
improve readability of tests
2020-04-13 16:27:46 -04:00
Marcel
ea8362ed63
Keep the null in authData if this is the first stage.
2020-04-10 19:32:50 +02:00
Marcel
3a1508c2ab
Fix "should make a request if no authdata is provided" test
2020-04-10 19:15:21 +02:00
Marcel
f914391aaf
Revert hack to set auth = null
2020-04-10 18:31:35 +02:00
Bruno Windels
8992438aa6
Merge pull request #1315 from matrix-org/bwindels/fixe2eecrash
...
Fix e2ee crash after refreshing after having received a cross-singing key reset
2020-04-10 10:20:20 +00:00
Bruno Windels
197d5ebb44
fix e2ee crash after refreshing after cross-singing key reset
2020-04-10 10:37:12 +02:00
Hubert Chathi
4039498eee
use cached backup key if available
2020-04-09 17:05:01 -04:00
Bruno Windels
a686231a5b
Merge pull request #1314 from matrix-org/bwindels/catchverifysenderrors
...
Fix: catch send errors in SAS verifier
2020-04-09 16:32:09 +00:00
Bruno Windels
97cf4bff1f
fix tests
2020-04-09 18:21:20 +02:00
Bruno Windels
cc8e8434ec
Update src/crypto/SecretStorage.js
...
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com >
2020-04-09 15:58:43 +00:00
Bruno Windels
11727833a2
mark request as cancelled immediately after verifier is cancelled
...
in case send errors prevent us from receiving remote echo
2020-04-09 17:54:45 +02:00
Hubert Chathi
df38fde336
apply changes from code review
2020-04-09 11:48:58 -04:00
Bruno Windels
00233d610b
pass on send errors so request gets cancelled
2020-04-09 17:23:44 +02:00
Bruno Windels
1b94b3c4de
throw something more informative when we cant find a key to decrypt with
2020-04-09 16:00:08 +02:00
Bruno Windels
d1c9030fac
Merge pull request #1312 from matrix-org/bwindels/fixresetkeys
...
Clear cross-signing keys when detecting the keys have changed
2020-04-09 13:34:26 +00:00
Bruno Windels
70071eef41
also emit user trust has changed
2020-04-09 14:09:51 +02:00
Bruno Windels
65dd56f53a
remove obsolete comment
2020-04-09 13:27:13 +02:00
Bruno Windels
c8fb4af369
fix comment style
2020-04-09 13:13:17 +02:00
Bruno Windels
9e1ba992e3
Clear cross-signing keys when detecting the keys have changed
2020-04-09 12:24:29 +02:00
J. Ryan Stinnett
bad09fed44
Merge pull request #1310 from matrix-org/jryans/upgrade-2020-04-08
...
Upgrade deps
2020-04-09 10:19:09 +01:00
Hubert Chathi
5bd146bb85
lint
2020-04-09 00:21:31 -04:00
Hubert Chathi
75703f273f
fix unit tests
2020-04-09 00:18:21 -04:00
Hubert Chathi
ca7b49d209
fix incorrect backup key format in SSSS
2020-04-09 00:08:17 -04:00
Marcel
379322db0d
Revert setting authDict = null by default
...
Remove console.log
Revert null checks on this._data
2020-04-08 20:50:59 +02:00
J. Ryan Stinnett
30bce8a682
yarn upgrade
2020-04-08 14:41:36 +01:00
RiotRobot
f413f0ee5f
v5.3.0-rc.1
2020-04-08 13:46:11 +01:00
RiotRobot
be6778a931
Prepare changelog for v5.3.0-rc.1
2020-04-08 13:46:10 +01:00
J. Ryan Stinnett
84637c6ebd
Merge pull request #1308 from matrix-org/jryans/backup-key-cache-format
...
Store key backup key in cache as Uint8Array
2020-04-08 11:32:18 +01:00
J. Ryan Stinnett
2ed6e9ba2f
Convert recovery key to Uint8Array explicitly
2020-04-08 00:43:52 +01:00
J. Ryan Stinnett
2e3cb54d38
Restore redundant conversion for tests
2020-04-07 19:21:25 +01:00
J. Ryan Stinnett
0efac7eae0
Store key backup key in cache as Uint8Array
...
Bootstrap was incorrectly storing the key backup key as base64 encoded, when
instead it should be a uint8Array.
Fixes https://github.com/vector-im/riot-web/issues/13057
2020-04-07 18:28:48 +01:00
J. Ryan Stinnett
dc56f05d03
Throw error when trying to cache keys in the wrong format
2020-04-07 18:06:57 +01:00
Hubert Chathi
4d2625278c
Merge pull request #1307 from MTRNord/fix-keys_query_endpoint
...
Use the correct request body for the /keys/query endpoint.
2020-04-07 12:01:06 -04:00
Marcel
bff8a947a1
Fix expectBobQueryKeys test
2020-04-07 16:53:28 +02:00
Marcel
9cb7406ebd
Fix downloadKeys test
2020-04-07 16:44:30 +02:00
Marcel
38681ca6ca
Fix expectAliQueryKeys test
2020-04-07 16:31:15 +02:00
Marcel
916696c906
Fix expectKeyQuery test
2020-04-07 16:19:46 +02:00
Marcel
1b3c4c935e
Use the correct request body for the /keys/query endpoint.
...
https://matrix.org/docs/spec/client_server/r0.6.0#post-matrix-client-r0-keys-query
2020-04-07 14:08:49 +02:00
Marcel
bf6d1f6555
Fix interactive-auth.js lint
2020-04-07 13:26:27 +02:00
Marcel
9faeac4c83
Merge branch 'develop' into fix-register-auth-with-new-spec
2020-04-07 13:15:51 +02:00
Marcel
a863cf3d72
Fix auth linter error and tests
2020-04-07 13:13:49 +02:00
David Baker
66417e6742
Merge pull request #1305 from matrix-org/dbkr/uia_ignore_poll_after_success
...
Avoid creating two devices on registration
2020-04-07 10:32:08 +01:00
David Baker
6ad4d6dd62
also fix typo
2020-04-07 10:21:57 +01:00
David Baker
59607f8dbf
Clear resolve / reject function after rejecting too
2020-04-07 10:20:58 +01:00
David Baker
62380a48d5
Merge pull request #1306 from matrix-org/dbkr/max_warnings_81
...
Lower max-warnings to 81
2020-04-07 10:19:45 +01:00
David Baker
4245372495
Lower max-warnings to 81
...
We apparently fixed 11 warnings at some point. Let's keep it that way.
2020-04-07 10:06:23 +01:00
David Baker
964a448470
Avoid creating two devices on registration
...
Ignore poll requests after a UIA session has finished. Sometimes
the app calls poll() even after the registration has succeeded
which causes the API call to happen again which, in the case of
registration, creates a phantom device.
Fixes https://github.com/vector-im/riot-web/issues/13040
2020-04-06 19:45:18 +01:00
J. Ryan Stinnett
2151f28d4c
Merge pull request #1303 from matrix-org/jryans/backup-key-not-cached
...
Move key backup key creation before caching
2020-04-06 18:41:58 +01:00
Marcel
45a92bcf9c
Fix auth check as auth == {} not works
2020-04-06 17:30:32 +02:00
Marcel
0a0441756b
Fix auth check
2020-04-06 17:23:24 +02:00
Marcel
c1de2ebbf9
Fix authdata to only be null if nothing had been added.
2020-04-06 17:14:43 +02:00
J. Ryan Stinnett
060549656e
Move key backup key creation before caching
...
For some reason, we were trying to cache the key backup key before it was
created, and as a result we wouldn't cache the key until perhaps a second time
through bootstrapping.
Fixes https://github.com/vector-im/riot-web/issues/13023
2020-04-06 16:03:24 +01:00
Marcel
557c2db955
Handle Error during user-interactive auth: TypeError: "this._data is null"
2020-04-06 15:37:52 +02:00
Marcel
ed8d064a13
Replace {} with null to be compliant with newer specs. While older also accepted null for the auth part of the registration request object
2020-04-06 15:22:04 +02:00
Zoe
7dabf507a2
Merge pull request #1298 from matrix-org/foldleft/12843-resend-requests
...
Expose function to force-reset outgoing room key requests
2020-04-06 13:43:06 +01:00
Zoe
d69afa47a1
review feedback
2020-04-06 13:30:36 +01:00
Bruno Windels
275a8175aa
Merge pull request #1302 from matrix-org/bwindels/selfverifux
...
Add isSelfVerification property to VerificationRequest
2020-04-03 16:02:05 +00:00
Bruno Windels
40bebf4cbd
Merge pull request #1297 from matrix-org/bwindels/qr-reciprocate
...
QR code reciprocation
2020-04-03 12:28:34 +00:00
Zoe
b8bc323c03
add a crypto-level function for resending key requests
2020-04-03 11:47:13 +01:00
Zoe
c6d32ea2b0
Expose function to force-reset outgoing room key requests
2020-04-02 16:25:50 +01:00
Bruno Windels
2ace35ad6b
add isSelfVerification helper
2020-04-02 17:16:06 +02:00
Bruno Windels
b5ea8d3a78
Merge branch 'bwindels/qr-reciprocate' into bwindels/selfverifux
2020-04-02 17:15:32 +02:00
Bruno Windels
f3a05f6ed0
fix jsdoc
2020-04-02 13:37:15 +02:00
Bruno Windels
43eae4929b
remove ts annotations as I don't want to convert the whole file now
2020-04-02 13:31:17 +02:00
Bruno Windels
6144962c24
cancel with m.user code when user doesn't reciprocate
2020-04-02 12:53:52 +02:00
Bruno Windels
544cc36006
explain a bit why we're doing things here
2020-04-02 11:31:44 +02:00
Hubert Chathi
1834e6688f
Merge pull request #1294 from matrix-org/uhoreg/check_sssss_passphrase
...
Add ability to check symmetric SSSS key before we try to use it
2020-04-01 16:01:34 -04:00
David Baker
e1ee56aa43
Merge pull request #1296 from matrix-org/dbkr/debug_stuck_events
...
Add some debug logging for events stuck to bottom of timeline
2020-04-01 18:54:52 +01:00
David Baker
a1779719be
Add some debug logging for events stuck to bottom of timeline
2020-04-01 18:48:59 +01:00
Bruno Windels
0e464af627
Merge pull request #1295 from matrix-org/bwindels/fixdoublerequestexplosion
...
Fix: spontanous verification request cancellation under some circumstances
2020-04-01 17:17:24 +00:00
Bruno Windels
fd7f0c3b5a
Ignore phase while checking if other party supports scanning
...
(as the phase hasn't been set yet)
Also, set the qrCodeData in handleEvent as we need it to be async
2020-04-01 19:01:53 +02:00
Bruno Windels
ed210a4fb1
Use static constructor that can be async (as looking up device is async)
...
Also fix static methods not to use this
2020-04-01 19:00:57 +02:00
Bruno Windels
c2a0504980
update comments
2020-04-01 18:23:34 +02:00
Bruno Windels
b6708871d3
fix olmlib import
2020-04-01 18:23:34 +02:00
Bruno Windels
275ea6aacb
spec recommends 11 random bytes for shared secret
2020-04-01 18:23:34 +02:00
Bruno Windels
f97d413603
expose chosen method after request has started
...
so we can show a different ux now that it's not just SAS anymore,
but also reciprocate
2020-04-01 18:23:34 +02:00
Bruno Windels
2c7ea0606b
move shared secret to QRCodeData
2020-04-01 18:23:34 +02:00
Bruno Windels
d7a7100912
reuse keys from qr code data to sign
...
so we don't sign the wrong keys if a malicious HS admin
forged a cross-sign identity reset
2020-04-01 18:23:34 +02:00
Bruno Windels
2c54b8d77e
ask the user if the other user scanned the QR code
2020-04-01 18:23:34 +02:00
Bruno Windels
b30f278e03
checking the userid isn't a thing anymore AFAIK
2020-04-01 18:23:34 +02:00
Bruno Windels
b642030a34
keep a copy of the master/device key and mode, for use in reciprocate
2020-04-01 18:23:34 +02:00
Bruno Windels
725976d472
Add QR code buffer generation to VerificationRequest (from react-sdk)
...
Doing this so later we can keep the other user master signing key on it
so we can make sure we cross-sign that one once we decide to sign.
2020-04-01 18:23:34 +02:00
Bruno Windels
80d87e1bf1
prevent the same event being handled twice in the verification request, result in cancellation
2020-04-01 17:13:24 +02:00
Hubert Chathi
d01f527e71
only try to set keyInfo if it exists
2020-03-31 16:54:06 -04:00
Hubert Chathi
3e68c82171
apply changes from code review
2020-03-31 16:34:41 -04:00
Hubert Chathi
51bde23207
Merge branch 'develop' into uhoreg/check_sssss_passphrase
2020-03-31 10:41:39 -04:00
J. Ryan Stinnett
934ed37fdc
Merge pull request #1293 from matrix-org/jryans/4s-prompt-overload
...
Receive private key for caching from the app layer
2020-03-31 11:04:51 +01:00
J. Ryan Stinnett
4a965f5408
Convert secret storage key creation to object
2020-03-31 10:45:02 +01:00
J. Ryan Stinnett
6343da33c3
Merge pull request #1292 from matrix-org/jryans/id-change-red
...
Track whether we have verified a user before
2020-03-31 10:07:20 +01:00
Hubert Chathi
e6edee863f
add ability to check symmetric SSSS key before we try to use it
2020-03-30 17:25:03 -04:00
J. Ryan Stinnett
9a1d62438d
Receive private key for caching from the app layer
...
This passes through the new secret storage key as well as the key info so that
bootstrap can use it immediately without triggering an immediate prompt.
Part of https://github.com/vector-im/riot-web/issues/12867
2020-03-30 21:46:22 +01:00
J. Ryan Stinnett
d2ba3039c7
Add missing awaits in bootstrap path
2020-03-30 21:46:22 +01:00
J. Ryan Stinnett
b6ad4c10bc
Track whether we have verified a user before
...
This tracks whether we have ever cross-signing verified a user before (at least
as far as the current device has ever observed). This info helps to present an
alert in case the user subsequently becomes unverified.
Part of https://github.com/vector-im/riot-web/issues/12808
2020-03-30 14:51:49 +01:00
J. Ryan Stinnett
93954d314e
Remove unused variable in device list
2020-03-30 14:51:49 +01:00
J. Ryan Stinnett
282f85f1dd
Add missing await when changing key IDs
2020-03-30 14:51:49 +01:00
RiotRobot
223d37ffce
Merge branch 'master' into develop
2020-03-30 13:23:17 +01:00
Bruno Windels
02264b4572
Merge pull request #1222 from matrix-org/bwindels/fixtestfailure
...
Fix: error during tests
2020-03-30 08:36:15 +00:00
Bruno Windels
add652f18e
Merge pull request #1288 from matrix-org/bwindels/alwayssenddone
...
Send .done event for to_device verification
2020-03-27 16:30:28 +00:00
David Baker
1b9146b9e7
Merge pull request #1291 from matrix-org/dbkr/request_key_backup_key
...
Request the key backup key & restore backup
2020-03-27 15:43:16 +00:00
J. Ryan Stinnett
5178819b51
Merge pull request #1276 from mjattiot/hotfix/screen_sharing
...
Make screen sharing works on Chrome using getDisplayMedia()
2020-03-27 15:40:53 +00:00
David Baker
f57c25ec27
Make test pass again
2020-03-27 15:13:46 +00:00
David Baker
794429b68b
Request the key backup key & restore backup
...
After a successful verification with ourselves, request the key
backup key too and restore a key backup if we get it.
Also cache the key backup key when we cache the SSK & USK so we have
it available to share.
Fixes https://github.com/vector-im/riot-web/issues/12704
2020-03-27 14:40:15 +00:00
David Baker
983a04bb00
Merge pull request #1289 from matrix-org/dbkr/send_is_verified
...
Fix isVerified returning false
2020-03-27 14:28:47 +00:00
David Baker
17386e7aae
Also pass the parameter in
2020-03-27 14:14:45 +00:00
David Baker
cb19cd673f
Fix isVerified returning false
...
which would cause key backups uploads to be missing is_verified
because it was set to `undefined` which would cause the backup to
fail
Fixes https://github.com/vector-im/riot-web/issues/12901
2020-03-27 14:11:32 +00:00
Bruno Windels
4f0a297cf3
remove obsolete comment
2020-03-27 12:08:43 +01:00
Bruno Windels
6553e331cd
also send .done event for to_device verification
2020-03-27 12:04:48 +01:00
Bruno Windels
21908aea6c
Merge pull request #1286 from matrix-org/bwindels/verifignoredupes
...
Fix: verification gets cancelled when event gets duplicated
2020-03-26 17:07:09 +00:00
David Baker
7c40798ee0
Merge pull request #1287 from matrix-org/dbkr/secret_request_front_door
...
Use requestSecret on the client to request secrets
2020-03-26 16:16:02 +00:00
David Baker
8cdc635cad
lint and aldo indent in a more traditional way
2020-03-26 16:12:11 +00:00
David Baker
7f5ac072e6
Use requestSecret on the client to request secrets
...
Rather than accessing private method to get the secret storage
object (this was a bit confusing when I grepped for 'requestSecret'
and didn't find anything).
2020-03-26 16:01:35 +00:00
Travis Ralston
d69af72c7a
Merge pull request #1277 from Awesome-Technologies/develop
...
Allow guests to fetch TURN servers
2020-03-26 09:33:41 -06:00
Bruno Windels
ece1e202de
indenting
2020-03-26 15:04:28 +01:00
Bruno Windels
91f38a362d
ignore duplicate verification events
2020-03-26 15:04:13 +01:00
Michael Albert
c6eb1525b5
Allow guests to fetch TURN servers
...
Signed-off-by: Michael Albert <michael.albert@awesome-technologies.de >
2020-03-24 18:04:26 +01:00
mjattiot
e25158975b
formatting
...
Signed-off-by: mjattiot <mjattiot@opensense.fr >
2020-03-20 15:22:56 +01:00
mjattiot
7e028a82fc
improved compatibility
...
Signed-off-by: mjattiot <mjattiot@opensense.fr >
2020-03-20 15:22:56 +01:00
mjattiot
17fe3e4dc1
init
...
Signed-off-by: mjattiot <mjattiot@opensense.fr >
2020-03-20 15:22:56 +01:00
Michael Telatynski
9da1f7b8d5
Fix unhomoglyph import to make browser-matrix.js happy once more
2020-03-02 10:54:14 +00:00
Bruno Windels
c4e449fc45
add null check for when there is no response
2020-02-20 11:42:33 +01:00