mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
Remove to-device events from event type filtering for redaction
This commit is contained in:
parent
5a43b76488
commit
a8f3bb1d4e
@ -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 New Issue
Block a user