matrix-js-sdk 20.0.0 → 20.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/browser-matrix.js +8 -5
- package/dist/browser-matrix.js.map +4 -4
- package/dist/browser-matrix.min.js +1 -1
- package/dist/browser-matrix.min.js.map +1 -1
- package/git-revision.txt +1 -1
- package/lib/client.d.ts +1 -1
- package/lib/client.d.ts.map +1 -1
- package/lib/crypto/store/indexeddb-crypto-store-backend.d.ts.map +1 -1
- package/lib/crypto/store/indexeddb-crypto-store-backend.js +1 -0
- package/lib/sync.d.ts.map +1 -1
- package/lib/sync.js +11 -8
- package/package.json +1 -1
- package/src/client.ts +1 -1
- package/src/crypto/store/indexeddb-crypto-store-backend.ts +1 -0
- package/src/sync.ts +16 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
Changes in [20.0.2](https://github.com/matrix-org/matrix-js-sdk/releases/tag/v20.0.2) (2022-09-30)
|
|
2
|
+
==================================================================================================
|
|
3
|
+
|
|
4
|
+
## 🐛 Bug Fixes
|
|
5
|
+
* Fix issue in sync when crypto is not supported by client ([\#2715](https://github.com/matrix-org/matrix-js-sdk/pull/2715)). Contributed by @stas-demydiuk.
|
|
6
|
+
|
|
7
|
+
Changes in [20.0.1](https://github.com/matrix-org/matrix-js-sdk/releases/tag/v20.0.1) (2022-09-28)
|
|
8
|
+
==================================================================================================
|
|
9
|
+
|
|
10
|
+
## 🐛 Bug Fixes
|
|
11
|
+
* Fix missing return when receiving an invitation without shared history ([\#2710](https://github.com/matrix-org/matrix-js-sdk/pull/2710)).
|
|
12
|
+
|
|
1
13
|
Changes in [20.0.0](https://github.com/matrix-org/matrix-js-sdk/releases/tag/v20.0.0) (2022-09-28)
|
|
2
14
|
==================================================================================================
|
|
3
15
|
|
package/dist/browser-matrix.js
CHANGED
|
@@ -11960,7 +11960,7 @@ module.exports={
|
|
|
11960
11960
|
"𝝛": "Z",
|
|
11961
11961
|
"𝞕": "Z",
|
|
11962
11962
|
"Ꮓ": "Z",
|
|
11963
|
-
"
|
|
11963
|
+
"ꓜ": "Z",
|
|
11964
11964
|
"𑢩": "Z",
|
|
11965
11965
|
"ʐ": "z̨",
|
|
11966
11966
|
"ƶ": "z̵",
|
|
@@ -36602,6 +36602,7 @@ class Backend {
|
|
|
36602
36602
|
const cursor = cursorReq.result;
|
|
36603
36603
|
if (!cursor) {
|
|
36604
36604
|
resolve([]);
|
|
36605
|
+
return;
|
|
36605
36606
|
}
|
|
36606
36607
|
const data = cursor.value;
|
|
36607
36608
|
cursor.delete();
|
|
@@ -58386,10 +58387,12 @@ class SyncApi {
|
|
|
58386
58387
|
const stateEvents = this.mapSyncEventsFormat(inviteObj.invite_state, room);
|
|
58387
58388
|
yield this.processRoomEvents(room, stateEvents);
|
|
58388
58389
|
const inviter = (_d = room.currentState.getStateEvents(event_1.EventType.RoomMember, client.getUserId())) === null || _d === void 0 ? void 0 : _d.getSender();
|
|
58389
|
-
|
|
58390
|
-
|
|
58391
|
-
|
|
58392
|
-
|
|
58390
|
+
if (client.isCryptoEnabled()) {
|
|
58391
|
+
const parkedHistory = yield client.crypto.cryptoStore.takeParkedSharedHistory(room.roomId);
|
|
58392
|
+
for (const parked of parkedHistory) {
|
|
58393
|
+
if (parked.senderId === inviter) {
|
|
58394
|
+
yield client.crypto.olmDevice.addInboundGroupSession(room.roomId, parked.senderKey, parked.forwardingCurve25519KeyChain, parked.sessionId, parked.sessionKey, parked.keysClaimed, true, { sharedHistory: true, untrusted: true });
|
|
58395
|
+
}
|
|
58393
58396
|
}
|
|
58394
58397
|
}
|
|
58395
58398
|
if (inviteObj.isBrandNewRoom) {
|