mirror of
https://github.com/element-hq/element-android
synced 2024-11-27 03:48:12 +03:00
Remove to-device events from event type filtering for redaction
This commit is contained in:
parent
5a43b76488
commit
a8f3bb1d4e
1 changed files with 1 additions and 7 deletions
|
@ -163,7 +163,6 @@ 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 ||
|
||||
eventType == EventType.STATE_ROOM_NAME ||
|
||||
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue