Remove non necessary comment + adding a TODO for missing aggregation check

This commit is contained in:
Maxime NATUREL 2022-04-13 10:39:13 +02:00
parent 4c07405220
commit 071340c868

View file

@ -41,6 +41,7 @@ internal class DefaultLiveLocationAggregationProcessor @Inject constructor() : L
} }
// A beacon info state event has to be sent before sending location // A beacon info state event has to be sent before sending location
// TODO handle missing check of m_relatesTo field
var beaconInfoEntity: CurrentStateEventEntity? = null var beaconInfoEntity: CurrentStateEventEntity? = null
val eventTypesIterator = EventType.STATE_ROOM_BEACON_INFO.iterator() val eventTypesIterator = EventType.STATE_ROOM_BEACON_INFO.iterator()
while (beaconInfoEntity == null && eventTypesIterator.hasNext()) { while (beaconInfoEntity == null && eventTypesIterator.hasNext()) {
@ -68,7 +69,6 @@ internal class DefaultLiveLocationAggregationProcessor @Inject constructor() : L
Timber.v("## LIVE LOCATION. Beacon info has timeout") Timber.v("## LIVE LOCATION. Beacon info has timeout")
beaconInfoContent.hasTimedOut = true beaconInfoContent.hasTimedOut = true
} else { } else {
// Update last location info of the beacon state event
beaconInfoContent.lastLocationContent = content beaconInfoContent.lastLocationContent = content
} }