Skip to content

Commit 40a4c8d

Browse files
authored
Merge branch 'develop' into megolm-cancellation
2 parents 1ee487a + 7ed787b commit 40a4c8d

17 files changed

+805
-413
lines changed

CHANGELOG.md

+37
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,40 @@
1+
Changes in [23.1.1](https://github.com/matrix-org/matrix-js-sdk/releases/tag/v23.1.1) (2023-01-20)
2+
==================================================================================================
3+
4+
## 🐛 Bug Fixes
5+
* Fix backwards compability for environment not support Array.prototype.at ([\#3080](https://github.com/matrix-org/matrix-js-sdk/pull/3080)).
6+
7+
Changes in [23.1.0](https://github.com/matrix-org/matrix-js-sdk/releases/tag/v23.1.0) (2023-01-18)
8+
==================================================================================================
9+
10+
## 🦖 Deprecations
11+
* Remove extensible events v1 field population on legacy events ([\#3040](https://github.com/matrix-org/matrix-js-sdk/pull/3040)).
12+
13+
## ✨ Features
14+
* Improve hasUserReadEvent and getUserReadUpTo realibility with threads ([\#3031](https://github.com/matrix-org/matrix-js-sdk/pull/3031)). Fixes vector-im/element-web#24164.
15+
* Remove video track when muting video ([\#3028](https://github.com/matrix-org/matrix-js-sdk/pull/3028)). Fixes vector-im/element-call#209.
16+
* Make poll start event type available (PSG-962) ([\#3034](https://github.com/matrix-org/matrix-js-sdk/pull/3034)).
17+
* Add alt event type matching in Relations model ([\#3018](https://github.com/matrix-org/matrix-js-sdk/pull/3018)).
18+
* Remove usage of v1 Identity Server API ([\#3003](https://github.com/matrix-org/matrix-js-sdk/pull/3003)).
19+
* Add `device_id` to `/account/whoami` types ([\#3005](https://github.com/matrix-org/matrix-js-sdk/pull/3005)).
20+
* Implement MSC3912: Relation-based redactions ([\#2954](https://github.com/matrix-org/matrix-js-sdk/pull/2954)).
21+
* Introduce a mechanism for using the rust-crypto-sdk ([\#2969](https://github.com/matrix-org/matrix-js-sdk/pull/2969)).
22+
* Support MSC3391: Account data deletion ([\#2967](https://github.com/matrix-org/matrix-js-sdk/pull/2967)).
23+
24+
## 🐛 Bug Fixes
25+
* Fix threaded cache receipt when event holds multiple receipts ([\#3026](https://github.com/matrix-org/matrix-js-sdk/pull/3026)).
26+
* Fix false key requests after verifying new device ([\#3029](https://github.com/matrix-org/matrix-js-sdk/pull/3029)). Fixes vector-im/element-web#24167 and vector-im/element-web#23333.
27+
* Avoid triggering decryption errors when decrypting redacted events ([\#3004](https://github.com/matrix-org/matrix-js-sdk/pull/3004)). Fixes vector-im/element-web#24084.
28+
* bugfix: upload OTKs in sliding sync mode ([\#3008](https://github.com/matrix-org/matrix-js-sdk/pull/3008)).
29+
* Apply edits discovered from sync after thread is initialised ([\#3002](https://github.com/matrix-org/matrix-js-sdk/pull/3002)). Fixes vector-im/element-web#23921.
30+
* Sliding sync: Fix issue where no unsubs are sent when switching rooms ([\#2991](https://github.com/matrix-org/matrix-js-sdk/pull/2991)).
31+
* Threads are missing from the timeline ([\#2996](https://github.com/matrix-org/matrix-js-sdk/pull/2996)). Fixes vector-im/element-web#24036.
32+
* Close all streams when a call ends ([\#2992](https://github.com/matrix-org/matrix-js-sdk/pull/2992)). Fixes vector-im/element-call#742.
33+
* Resume to-device message queue after resumed sync ([\#2920](https://github.com/matrix-org/matrix-js-sdk/pull/2920)). Fixes matrix-org/element-web-rageshakes#17170.
34+
* Fix browser entrypoint ([\#3051](https://github.com/matrix-org/matrix-js-sdk/pull/3051)). Fixes #3013.
35+
* 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.
36+
* 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.
37+
138
Changes in [23.0.0](https://github.com/matrix-org/matrix-js-sdk/releases/tag/v23.0.0) (2022-12-21)
239
==================================================================================================
340

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "matrix-js-sdk",
3-
"version": "23.0.0",
3+
"version": "23.1.1",
44
"description": "Matrix Client-Server SDK for Javascript",
55
"engines": {
66
"node": ">=16.0.0"

spec/TestClient.ts

+12-3
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)