-
-
Notifications
You must be signed in to change notification settings - Fork 590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Live location sharing - Aggregate beacon locations on beacons #2268
Conversation
Signed-off-by: Kerry Archibald <kerrya@element.io>
Signed-off-by: Kerry Archibald <kerrya@element.io>
Signed-off-by: Kerry Archibald <kerrya@element.io>
Signed-off-by: Kerry Archibald <kerrya@element.io>
Signed-off-by: Kerry Archibald <kerrya@element.io>
8223b77
to
75ea743
Compare
Codecov Report
@@ Coverage Diff @@
## develop #2268 +/- ##
===========================================
+ Coverage 59.00% 59.11% +0.11%
===========================================
Files 91 91
Lines 16335 16383 +48
Branches 3768 3779 +11
===========================================
+ Hits 9638 9685 +47
- Misses 6697 6698 +1
|
Signed-off-by: Kerry Archibald <kerrya@element.io>
Signed-off-by: Kerry Archibald <kerrya@element.io>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
otherwise lgtm - thanks!
const beaconEvent2 = makeBeaconEvent(userId, { timestamp: 1648804528558 }); | ||
const beaconEvent3 = makeBeaconEvent(userId, { timestamp: 1648804528000 }); | ||
const beaconEvent4 = makeBeaconEvent(userId, { timestamp: 0 }); | ||
it('sorts events with timestamps as later than events without', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it('sorts events with timestamps as later than events without', () => { | |
it('sorts events with timestamps as later than events without', () => { |
function getContentTimestampWithFallback(event: MatrixEvent): number { | ||
return M_TIMESTAMP.findIn<number>(event.getContent()) ?? -1; | ||
} | ||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/** | |
/** |
Signed-off-by: Kerry Archibald <kerrya@element.io>
Signed-off-by: Kerry Archibald <kerrya@element.io>
Signed-off-by: Kerry Archibald <kerrya@element.io>
* Add MatrixClient.doesServerSupportLogoutDevices() for MSC2457 ([\matrix-org#2297](matrix-org#2297)). * Live location sharing - expose room liveBeaconIds ([\matrix-org#2296](matrix-org#2296)). * Support for MSC2457 logout_devices param for setPassword() ([\matrix-org#2285](matrix-org#2285)). * Stabilise token authenticated registration support ([\matrix-org#2181](matrix-org#2181)). Contributed by @govynnus. * Live location sharing - Aggregate beacon locations on beacons ([\matrix-org#2268](matrix-org#2268)). * Prevent duplicated re-emitter setups in event-mapper ([\matrix-org#2293](matrix-org#2293)). * Make self membership less prone to races ([\matrix-org#2277](matrix-org#2277)). Fixes element-hq/element-web#21661.
Process
m.beacon
events, adding them to Beacon state and emitting on change.Here's what your changelog entry will look like:
✨ Features