mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-27 03:49:04 +03:00
Also filter redacted events
This commit is contained in:
parent
c33af6de6a
commit
95395945f2
1 changed files with 4 additions and 4 deletions
|
@ -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 a new issue