ElementRobot
d18aae09c8
Fix: Handle parsing of a beacon info event without asset ( #2591 ) ( #2592 )
...
* test case
* handle missing beacon info asset
* default beacon info asset type to self
* make BeaconLocationState.assetType optional
(cherry picked from commit be3e731499 )
Co-authored-by: Kerry <kerrya@element.io >
2022-08-16 14:50:49 +01:00
Kerry
fc946ab0fa
expose latestLocationEvent on beacon model ( #2467 )
2022-06-17 13:39:23 +02:00
Kerry
9b843daf2f
Live location share - add start time leniency (PSF-1081) ( #2465 )
...
* remove some of the confusing time travel in beacon.spec
* test cases
* add start time leniency to beacon liveness check
2022-06-16 15:00:45 +02:00
Kerry
2982bd79f6
Live location sharing - monitor liveness of beacons yet to start (PSF-1081) ( #2437 )
...
* monitor liveness of beacons yet to start
* make watch interval a timeout instead
2022-06-07 17:04:58 +02:00
Kerry
f963feab0f
Live location sharing - Aggregate beacon locations on beacons ( #2268 )
...
* add timestamp sorting util
Signed-off-by: Kerry Archibald <kerrya@element.io >
* basic wiring
Signed-off-by: Kerry Archibald <kerrya@element.io >
* quick handle for redacted beacons
Signed-off-by: Kerry Archibald <kerrya@element.io >
* remove fdescribe
Signed-off-by: Kerry Archibald <kerrya@element.io >
* test adding locations
Signed-off-by: Kerry Archibald <kerrya@element.io >
* tidy comments
Signed-off-by: Kerry Archibald <kerrya@element.io >
* test client
Signed-off-by: Kerry Archibald <kerrya@element.io >
* fix monitorLiveness for update
Signed-off-by: Kerry Archibald <kerrya@element.io >
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-04-08 12:26:05 +01:00
Kerry
781fdf4fdc
Live location sharing - update beacon_info implementation to latest MSC ( #2281 )
...
* remove M_BEACON_INFO_VARIABLE
Signed-off-by: Kerry Archibald <kerrya@element.io >
* create beacon_info events with non-variable event type
Signed-off-by: Kerry Archibald <kerrya@element.io >
* remove isBeaconInfoEventType
Signed-off-by: Kerry Archibald <kerrya@element.io >
* refer to msc3673 instead of msc3489
Signed-off-by: Kerry Archibald <kerrya@element.io >
* remove event type suffix
Signed-off-by: Kerry Archibald <kerrya@element.io >
* update beacon identifier to use state key
Signed-off-by: Kerry Archibald <kerrya@element.io >
* fix beacon spec
Signed-off-by: Kerry Archibald <kerrya@element.io >
* fix room-state tests
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add beacon identifier
Signed-off-by: Kerry Archibald <kerrya@element.io >
* dont allow update to older beacon event
Signed-off-by: Kerry Archibald <kerrya@element.io >
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io >
* unnest beacon_info content
Signed-off-by: Kerry Archibald <kerrya@element.io >
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io >
* check redaction event id
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-04-08 10:50:06 +02:00
Kerry
71b7521f42
Live location sharing - handle redacted beacons ( #2269 )
...
* emit beacon destroy event on destroy
Signed-off-by: Kerry Archibald <kerrya@element.io >
* handle redacted beacon events in room-state
Signed-off-by: Kerry Archibald <kerrya@element.io >
* empty line
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-04-04 10:17:49 +02:00
Kerry
a6fe8797f0
Use beacon info event type as beacon identifier ( #2251 )
...
* use beacon info event type as beacon identifier
Signed-off-by: Kerry Archibald <kerrya@element.io >
* test cases
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-03-22 11:14:43 +01:00
Kerry
524322280b
add upsert function for updating beacon events ( #2247 )
...
* add upsert function for updating beacon events
Signed-off-by: Kerry Archibald <kerrya@element.io >
* expose event type on beacon model
Signed-off-by: Kerry Archibald <kerrya@element.io >
* allow setting timestamp in beaconinfo content helper
Signed-off-by: Kerry Archibald <kerrya@element.io >
* expose parsed beacon info
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-03-18 09:52:27 +01:00
Kerry
18943d6519
emit aggregate room beacon liveness ( #2241 )
...
* emit aggregate room beacon liveness
Signed-off-by: Kerry Archibald <kerrya@element.io >
* tidy and comment
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add export for models/beacon
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add owner and roomId
Signed-off-by: Kerry Archibald <kerrya@element.io >
* copyright
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-03-16 08:54:13 +00:00
Kerry
c2fdb4478d
Live location sharing - create m.beacon_info events ( #2238 )
...
* add content helpers
Signed-off-by: Kerry Archibald <kerrya@element.io >
* stubbed Beacon class
Signed-off-by: Kerry Archibald <kerrya@element.io >
* beacon test utils
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add beacon test utils
Signed-off-by: Kerry Archibald <kerrya@element.io >
* copyrights
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add beacons to room state
Signed-off-by: Kerry Archibald <kerrya@element.io >
* tidy comments
Signed-off-by: Kerry Archibald <kerrya@element.io >
* unit test RoomState.setBeacon
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-03-15 10:31:32 +01:00