Fix set of userId in aggregation process

This commit is contained in:
Maxime NATUREL 2022-05-17 14:23:49 +02:00
parent 3b06f18ccb
commit ca9591e423
1 changed files with 1 additions and 0 deletions

View File

@ -70,6 +70,7 @@ internal class LiveLocationAggregationProcessor @Inject constructor(
val endOfLiveTimestampMillis = content.getBestTimestampMillis()?.let { it + (content.timeout ?: 0) }
aggregatedSummary.endOfLiveTimestampMillis = endOfLiveTimestampMillis
aggregatedSummary.isActive = isLive
aggregatedSummary.userId = event.senderId
if (isLive) {
scheduleDeactivationAfterTimeout(targetEventId, roomId, endOfLiveTimestampMillis)