From a8f3bb1d4e294edb6bb11218efb69d77f9b3780a Mon Sep 17 00:00:00 2001 From: Florian Renaud Date: Fri, 25 Nov 2022 10:16:35 +0100 Subject: [PATCH] Remove to-device events from event type filtering for redaction --- .../session/room/prune/RedactionEventProcessor.kt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/prune/RedactionEventProcessor.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/prune/RedactionEventProcessor.kt index f9b0e893cb..0cff2c5a7c 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/prune/RedactionEventProcessor.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/prune/RedactionEventProcessor.kt @@ -163,8 +163,7 @@ internal class RedactionEventProcessor @Inject constructor() : EventInsertLivePr return when { EventType.isCallEvent(eventType) -> false EventType.isVerificationEvent(eventType) -> false - eventType == EventType.ROOM_KEY || - eventType == EventType.STATE_ROOM_WIDGET_LEGACY || + eventType == EventType.STATE_ROOM_WIDGET_LEGACY || eventType == EventType.STATE_ROOM_WIDGET || eventType == EventType.STATE_ROOM_NAME || eventType == EventType.STATE_ROOM_TOPIC || @@ -179,11 +178,6 @@ internal class RedactionEventProcessor @Inject constructor() : EventInsertLivePr eventType == EventType.STATE_ROOM_PINNED_EVENT || eventType == EventType.STATE_ROOM_ENCRYPTION || eventType == EventType.STATE_ROOM_SERVER_ACL || - eventType == EventType.ROOM_KEY_REQUEST || - eventType == EventType.FORWARDED_ROOM_KEY || - eventType in EventType.ROOM_KEY_WITHHELD.values || - eventType == EventType.REQUEST_SECRET || - eventType == EventType.SEND_SECRET || eventType == EventType.REACTION -> false else -> true }