Live location sharing: fix safari timestamps pt 2 (#8443)
* handle safari cocoa core data timestamps Signed-off-by: Kerry Archibald <kerrya@element.io> * actually fix safari timestamp issue properly Signed-off-by: Kerry Archibald <kerrya@element.io> * actually fix safari timestamp issue properly Signed-off-by: Kerry Archibald <kerrya@element.io>
This commit is contained in:
@@ -114,7 +114,8 @@ export const getGeoUri = (position: GenericPosition): string => {
|
||||
};
|
||||
|
||||
export const mapGeolocationPositionToTimedGeo = (position: GeolocationPosition): TimedGeoUri => {
|
||||
return { timestamp: position.timestamp, geoUri: getGeoUri(genericPositionFromGeolocation(position)) };
|
||||
const genericPosition = genericPositionFromGeolocation(position);
|
||||
return { timestamp: genericPosition.timestamp, geoUri: getGeoUri(genericPosition) };
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user