diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/relation/FetchEditHistoryTask.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/relation/FetchEditHistoryTask.kt index f1c8fd49a4..f9fd5f9348 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/relation/FetchEditHistoryTask.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/relation/FetchEditHistoryTask.kt @@ -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) } }