Reverts to fix by removing event timestamp condition
This commit is contained in:
parent
df6ae4b848
commit
fe3c9cc09f
|
@ -385,7 +385,7 @@ internal class EventRelationsAggregationProcessor @Inject constructor(
|
|||
}
|
||||
|
||||
val closedTime = existingPollSummary?.closedTime
|
||||
if (closedTime != null && eventTimestamp > closedTime) {
|
||||
if (closedTime != null) {
|
||||
Timber.v("## POLL is closed ignore event poll:$targetEventId, event :${event.eventId}")
|
||||
return
|
||||
}
|
||||
|
@ -499,8 +499,6 @@ internal class EventRelationsAggregationProcessor @Inject constructor(
|
|||
}
|
||||
|
||||
val txId = event.unsignedData?.transactionId
|
||||
existingPollSummary.closedTime = event.originServerTs
|
||||
|
||||
// is it a remote echo?
|
||||
if (!isLocalEcho && existingPollSummary.sourceLocalEchoEvents.contains(txId)) {
|
||||
// ok it has already been managed
|
||||
|
@ -509,6 +507,8 @@ internal class EventRelationsAggregationProcessor @Inject constructor(
|
|||
existingPollSummary.sourceEvents.add(event.eventId)
|
||||
return
|
||||
}
|
||||
|
||||
existingPollSummary.closedTime = event.originServerTs
|
||||
}
|
||||
|
||||
private fun getPollEvent(roomId: String, eventId: String): TimelineEvent? {
|
||||
|
|
Loading…
Reference in New Issue