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:
parent
fddbc429a9
commit
e233cf5061
3 changed files with 11 additions and 7 deletions
|
@ -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) };
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue