Skip to content

Commit 0e1aa9d

Browse files
committed
doc : update changelogs
1 parent 66a1244 commit 0e1aa9d

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

bindings/matrix-sdk-ffi/CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@ All notable changes to this project will be documented in this file.
5050
`LiveLocationShareListener` callback that is called with the full list of currently active
5151
`LiveLocationShare` items whenever the list changes. The stream is seeded from the event cache
5252
on creation and includes the own user's shares (previously excluded). `LiveLocationShare.is_live`
53-
is now always `true` for shares in the active list (non-live shares are removed). A new
54-
`LiveLocationShareListener` callback interface must be implemented and passed to the method.
53+
has been removed; instead `ts` (start timestamp) and `timeout` (duration in milliseconds) are now
54+
exposed so clients can compute liveness themselves via `current_time < ts + timeout`. Non-live
55+
shares are automatically removed from the list. A new `LiveLocationShareListener` callback
56+
interface must be implemented and passed to the method.
5557
([#6385](https://github.com/matrix-org/matrix-rust-sdk/pull/6385))
5658
- Expose sync v2 API through FFI via `Client.sync_v2()` and
5759
`Client.sync_once_v2()`, enabling mobile clients to sync without

crates/matrix-sdk/CHANGELOG.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,11 @@ All notable changes to this project will be documented in this file.
9696
### Breaking Changes
9797

9898
- `Room::observe_live_location_shares` has been replaced by `Room::subscribe_to_live_location_shares`.
99-
The new API returns a `Stream<Item = Vec<LiveLocationShare>>` that emits the full snapshot of all
100-
currently active shares on every change, instead of emitting individual `LiveLocationShare` items as
101-
beacon events arrive. The stream is seeded from the event cache on creation, includes the own user's
102-
shares (previously excluded), and properly handles share start/stop by listening to beacon_info state
103-
events. `beacon_info` on `LiveLocationShare` is now `BeaconInfoEventContent` instead of
104-
`Option<BeaconInfoEventContent>`.
99+
The new API returns a `LiveLocationShares` struct with a `subscribe()` method that provides an initial
100+
snapshot (`Vector<LiveLocationShare>`) and a batched stream of `VectorDiff` updates, instead of
101+
emitting individual `LiveLocationShare` items as beacon events arrive. The initial snapshot is loaded
102+
from the event cache on creation, includes the own user's shares (previously excluded), and properly
103+
handles share start/stop by listening to beacon_info state events.
105104
([#6385](https://github.com/matrix-org/matrix-rust-sdk/pull/6385))
106105

107106
### Bugfix

0 commit comments

Comments
 (0)