Live location : ensure it's not sorted randomly

This commit is contained in:
ganfra 2026-04-17 14:54:53 +02:00
parent fbfeeae084
commit 8182a149d0
6 changed files with 124 additions and 26 deletions

View file

@ -17,6 +17,8 @@ data class LiveLocationShare(
val userId: UserId,
/** The last known location if any. */
val lastLocation: LastLocation?,
/** The timestamp when location sharing started, in milliseconds.*/
val startTimestamp: Long,
/** The timestamp when location sharing ends, in milliseconds. */
val endTimestamp: Long,
)

View file

@ -68,6 +68,7 @@ private fun RustLiveLocationShare.into(): LiveLocationShare {
assetType = it.location.asset.into(),
)
},
startTimestamp = startTs.toLong(),
endTimestamp = (startTs + timeout).toLong()
)
}