matrix-js-sdk 19.3.0-rc.2 → 19.3.0

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 CHANGED
@@ -1,16 +1,10 @@
1
- Changes in [19.3.0-rc.2](https://github.com/matrix-org/matrix-js-sdk/releases/tag/v19.3.0-rc.2) (2022-08-12)
2
- ============================================================================================================
3
-
4
- ## 🐛 Bug Fixes
5
- * Fix finding event read up to if stable private read receipts is missing ([\#2585](https://github.com/matrix-org/matrix-js-sdk/pull/2585)). Fixes vector-im/element-web#23027.
6
-
7
- Changes in [19.3.0-rc.1](https://github.com/matrix-org/matrix-js-sdk/releases/tag/v19.3.0-rc.1) (2022-08-09)
8
- ============================================================================================================
1
+ Changes in [19.3.0](https://github.com/matrix-org/matrix-js-sdk/releases/tag/v19.3.0) (2022-08-16)
2
+ ==================================================================================================
9
3
 
10
4
  ## ✨ Features
5
+ * Add txn_id support to sliding sync ([\#2567](https://github.com/matrix-org/matrix-js-sdk/pull/2567)).
11
6
  * Emit an event when the client receives TURN servers ([\#2529](https://github.com/matrix-org/matrix-js-sdk/pull/2529)).
12
7
  * Add support for stable prefixes for MSC2285 ([\#2524](https://github.com/matrix-org/matrix-js-sdk/pull/2524)).
13
- * Always block sending keys to unverified devices of verified users ([\#2562](https://github.com/matrix-org/matrix-js-sdk/pull/2562)). Contributed by @duxovni.
14
8
  * Remove stream-replacement ([\#2551](https://github.com/matrix-org/matrix-js-sdk/pull/2551)).
15
9
  * Add support for sending user-defined encrypted to-device messages ([\#2528](https://github.com/matrix-org/matrix-js-sdk/pull/2528)).
16
10
  * Retry to-device messages ([\#2549](https://github.com/matrix-org/matrix-js-sdk/pull/2549)). Fixes vector-im/element-web#12851.
@@ -18,6 +12,9 @@ Changes in [19.3.0-rc.1](https://github.com/matrix-org/matrix-js-sdk/releases/ta
18
12
  * Use stable prefixes for MSC3827 ([\#2537](https://github.com/matrix-org/matrix-js-sdk/pull/2537)).
19
13
 
20
14
  ## 🐛 Bug Fixes
15
+ * Fix: Handle parsing of a beacon info event without asset ([\#2591](https://github.com/matrix-org/matrix-js-sdk/pull/2591)). Fixes vector-im/element-web#23078.
16
+ * Fix finding event read up to if stable private read receipts is missing ([\#2585](https://github.com/matrix-org/matrix-js-sdk/pull/2585)). Fixes vector-im/element-web#23027.
17
+ * Fixed a sliding sync issue where history could be interpreted as live events. ([\#2583](https://github.com/matrix-org/matrix-js-sdk/pull/2583)).
21
18
  * Don't load the sync accumulator if there's already a sync persist in flight ([\#2569](https://github.com/matrix-org/matrix-js-sdk/pull/2569)).
22
19
 
23
20
  Changes in [19.2.0](https://github.com/matrix-org/matrix-js-sdk/releases/tag/v19.2.0) (2022-08-02)
@@ -23957,13 +23957,13 @@ exports.makeBeaconInfoContent = makeBeaconInfoContent;
23957
23957
  */
23958
23958
  const parseBeaconInfoContent = (content) => {
23959
23959
  const { description, timeout, live } = content;
23960
- const { type: assetType } = location_1.M_ASSET.findIn(content);
23961
23960
  const timestamp = location_1.M_TIMESTAMP.findIn(content);
23961
+ const asset = location_1.M_ASSET.findIn(content);
23962
23962
  return {
23963
23963
  description,
23964
23964
  timeout,
23965
23965
  live,
23966
- assetType,
23966
+ assetType: asset === null || asset === void 0 ? void 0 : asset.type,
23967
23967
  timestamp,
23968
23968
  };
23969
23969
  };
@@ -43867,7 +43867,7 @@ class Beacon extends typed_event_emitter_1.TypedEventEmitter {
43867
43867
  const startTimestamp = ((_a = this._beaconInfo) === null || _a === void 0 ? void 0 : _a.timestamp) > Date.now() ?
43868
43868
  ((_b = this._beaconInfo) === null || _b === void 0 ? void 0 : _b.timestamp) - 360000 /* 6min */ :
43869
43869
  (_c = this._beaconInfo) === null || _c === void 0 ? void 0 : _c.timestamp;
43870
- this._isLive = ((_d = this._beaconInfo) === null || _d === void 0 ? void 0 : _d.live) &&
43870
+ this._isLive = !!((_d = this._beaconInfo) === null || _d === void 0 ? void 0 : _d.live) &&
43871
43871
  (0, exports.isTimestampInDuration)(startTimestamp, (_e = this._beaconInfo) === null || _e === void 0 ? void 0 : _e.timeout, Date.now());
43872
43872
  if (prevLiveness !== this.isLive) {
43873
43873
  this.emit(BeaconEvent.LivenessChange, this.isLive, this);