mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
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
Block a user