Also filter redacted events
This commit is contained in:
parent
c33af6de6a
commit
95395945f2
|
@ -49,11 +49,11 @@ internal class DefaultFetchEditHistoryTask @Inject constructor(
|
|||
)
|
||||
}
|
||||
|
||||
// Filter out edition form other users
|
||||
// Filter out edition form other users, and redacted editions
|
||||
val originalSenderId = response.originalEvent?.senderId
|
||||
val events = response.chunks.filter {
|
||||
it.senderId == originalSenderId
|
||||
}
|
||||
val events = response.chunks
|
||||
.filter { it.senderId == originalSenderId }
|
||||
.filter { !it.isRedacted() }
|
||||
return events + listOfNotNull(response.originalEvent)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue