Live location share - forward latest location (PSF-1044) (#8860)
* handle beacon location events in ForwardDialog * add transformer for forwarded events in MessageContextMenu * remove canForward * update snapshots for beacon model change * add comments * fix bad copy pasted test * add test for beacon locations
This commit is contained in:
parent
0a90674e89
commit
b51ef246ab
12 changed files with 292 additions and 81 deletions
|
@ -26,10 +26,20 @@ exports[`<BeaconMarker /> renders marker when beacon has location 1`] = `
|
|||
},
|
||||
"_eventsCount": 5,
|
||||
"_isLive": true,
|
||||
"_latestLocationState": Object {
|
||||
"description": undefined,
|
||||
"timestamp": 1647270879404,
|
||||
"uri": "geo:51,41",
|
||||
"_latestLocationEvent": Object {
|
||||
"content": Object {
|
||||
"m.relates_to": Object {
|
||||
"event_id": "$alice-room1-1",
|
||||
"rel_type": "m.reference",
|
||||
},
|
||||
"org.matrix.msc3488.location": Object {
|
||||
"description": undefined,
|
||||
"uri": "geo:51,41",
|
||||
},
|
||||
"org.matrix.msc3488.ts": 1647270879404,
|
||||
},
|
||||
"sender": "@alice:server",
|
||||
"type": "org.matrix.msc3672.beacon",
|
||||
},
|
||||
"_maxListeners": undefined,
|
||||
"clearLatestLocation": [Function],
|
||||
|
|
|
@ -16,7 +16,7 @@ exports[`<BeaconStatus /> active state renders without children 1`] = `
|
|||
"_events": Object {},
|
||||
"_eventsCount": 0,
|
||||
"_isLive": undefined,
|
||||
"_latestLocationState": undefined,
|
||||
"_latestLocationEvent": undefined,
|
||||
"_maxListeners": undefined,
|
||||
"clearLatestLocation": [Function],
|
||||
"livenessWatchTimeout": undefined,
|
||||
|
@ -78,7 +78,7 @@ exports[`<BeaconStatus /> active state renders without children 1`] = `
|
|||
"_events": Object {},
|
||||
"_eventsCount": 0,
|
||||
"_isLive": undefined,
|
||||
"_latestLocationState": undefined,
|
||||
"_latestLocationEvent": undefined,
|
||||
"_maxListeners": undefined,
|
||||
"clearLatestLocation": [Function],
|
||||
"livenessWatchTimeout": undefined,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue