Skip to content

Commit 7158a99

Browse files
committed
Merge tag 'v23.2.0' into sc
* Implement decryption via the rust sdk ([\matrix-org#3074](matrix-org#3074)). * Handle edits which are bundled with an event, per MSC3925 ([\matrix-org#3045](matrix-org#3045)). * Add null check for our own member event ([\matrix-org#3082](matrix-org#3082)). * Handle group call getting initialised twice in quick succession ([\matrix-org#3078](matrix-org#3078)). Fixes element-hq/element-call#847. * Correctly handle limited sync responses by resetting the thread timeline ([\matrix-org#3056](matrix-org#3056)). Fixes element-hq/element-web#23952. Contributed by @justjanne. * Fix failure to start in firefox private browser ([\matrix-org#3058](matrix-org#3058)). Fixes element-hq/element-web#24216. * Fix spurious "Decryption key withheld" messages ([\matrix-org#3061](matrix-org#3061)). Fixes element-hq/element-web#23803. * Fix browser entrypoint ([\matrix-org#3051](matrix-org#3051)). Fixes matrix-org#3013.
2 parents d89e210 + e15cf99 commit 7158a99

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+3161
-721
lines changed

.github/workflows/docs-pr-netlify.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
# There's a 'download artifact' action, but it hasn't been updated for the workflow_run action
1515
# (https://github.com/actions/download-artifact/issues/60) so instead we get this mess:
1616
- name: 📥 Download artifact
17-
uses: dawidd6/action-download-artifact@e6e25ac3a2b93187502a8be1ef9e9603afc34925 # v2.24.2
17+
uses: dawidd6/action-download-artifact@bd10f381a96414ce2b13a11bfa89902ba7cea07f # v2.24.3
1818
with:
1919
workflow: static_analysis.yml
2020
run_id: ${{ github.event.workflow_run.id }}

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
Changes in [23.2.0](https://github.com/matrix-org/matrix-js-sdk/releases/tag/v23.2.0) (2023-01-31)
2+
==================================================================================================
3+
4+
## ✨ Features
5+
* Implement decryption via the rust sdk ([\#3074](https://github.com/matrix-org/matrix-js-sdk/pull/3074)).
6+
* Handle edits which are bundled with an event, per MSC3925 ([\#3045](https://github.com/matrix-org/matrix-js-sdk/pull/3045)).
7+
8+
## 🐛 Bug Fixes
9+
* Add null check for our own member event ([\#3082](https://github.com/matrix-org/matrix-js-sdk/pull/3082)).
10+
* Handle group call getting initialised twice in quick succession ([\#3078](https://github.com/matrix-org/matrix-js-sdk/pull/3078)). Fixes vector-im/element-call#847.
11+
* Correctly handle limited sync responses by resetting the thread timeline ([\#3056](https://github.com/matrix-org/matrix-js-sdk/pull/3056)). Fixes vector-im/element-web#23952. Contributed by @justjanne.
12+
* Fix failure to start in firefox private browser ([\#3058](https://github.com/matrix-org/matrix-js-sdk/pull/3058)). Fixes vector-im/element-web#24216.
13+
* Fix spurious "Decryption key withheld" messages ([\#3061](https://github.com/matrix-org/matrix-js-sdk/pull/3061)). Fixes vector-im/element-web#23803.
14+
* Fix browser entrypoint ([\#3051](https://github.com/matrix-org/matrix-js-sdk/pull/3051)). Fixes #3013.
15+
116
Changes in [23.1.1](https://github.com/matrix-org/matrix-js-sdk/releases/tag/v23.1.1) (2023-01-20)
217
==================================================================================================
318

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "matrix-js-sdk",
3-
"version": "23.1.1",
3+
"version": "23.2.0",
44
"description": "Matrix Client-Server SDK for Javascript",
55
"engines": {
66
"node": ">=16.0.0"
@@ -33,7 +33,7 @@
3333
"matrix-org"
3434
],
3535
"main": "./lib/index.js",
36-
"browser": "./lib/browser-index.js",
36+
"browser": "./src/browser-index.ts",
3737
"matrix_src_main": "./src/index.ts",
3838
"matrix_src_browser": "./src/browser-index.ts",
3939
"matrix_lib_main": "./lib/index.js",
@@ -98,7 +98,7 @@
9898
"browserify": "^17.0.0",
9999
"docdash": "^2.0.0",
100100
"domexception": "^4.0.0",
101-
"eslint": "8.29.0",
101+
"eslint": "8.31.0",
102102
"eslint-config-google": "^0.14.0",
103103
"eslint-config-prettier": "^8.5.0",
104104
"eslint-import-resolver-typescript": "^3.5.1",
@@ -114,7 +114,7 @@
114114
"jest-localstorage-mock": "^2.4.6",
115115
"jest-mock": "^29.0.0",
116116
"matrix-mock-request": "^2.5.0",
117-
"prettier": "2.8.1",
117+
"prettier": "2.8.2",
118118
"rimraf": "^3.0.2",
119119
"terser": "^5.5.1",
120120
"tsify": "^5.0.2",

spec/TestClient.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,21 +115,30 @@ export class TestClient {
115115
}
116116

117117
/**
118-
* Set up expectations that the client will upload device keys.
118+
* Set up expectations that the client will upload device keys (and possibly one-time keys)
119119
*/
120120
public expectDeviceKeyUpload() {
121121
this.httpBackend
122122
.when("POST", "/keys/upload")
123123
.respond<IKeysUploadResponse, IUploadKeysRequest>(200, (_path, content) => {
124-
expect(content.one_time_keys).toBe(undefined);
125124
expect(content.device_keys).toBeTruthy();
126125

127126
logger.log(this + ": received device keys");
128127
// we expect this to happen before any one-time keys are uploaded.
129128
expect(Object.keys(this.oneTimeKeys!).length).toEqual(0);
130129

131130
this.deviceKeys = content.device_keys;
132-
return { one_time_key_counts: { signed_curve25519: 0 } };
131+
132+
// the first batch of one-time keys may be uploaded at the same time.
133+
if (content.one_time_keys) {
134+
logger.log(`${this}: received ${Object.keys(content.one_time_keys).length} one-time keys`);
135+
this.oneTimeKeys = content.one_time_keys;
136+
}
137+
return {
138+
one_time_key_counts: {
139+
signed_curve25519: Object.keys(this.oneTimeKeys!).length,
140+
},
141+
};
133142
});
134143
}
135144

0 commit comments

Comments
 (0)