-
Notifications
You must be signed in to change notification settings - Fork 750
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle redacted events #4286
Handle redacted events #4286
Conversation
@@ -35,7 +36,10 @@ class NotifiableEventProcessor @Inject constructor( | |||
is NotifiableMessageEvent -> if (shouldIgnoreMessageEventInRoom(currentRoomId, it.roomId) || outdatedDetector.isMessageOutdated(it)) { | |||
REMOVE | |||
} else KEEP | |||
is SimpleNotifiableEvent -> KEEP | |||
is SimpleNotifiableEvent -> when (it.type) { | |||
EventType.REDACTION -> REMOVE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simple events are raw events https://github.com/vector-im/element-android/blob/develop/vector/src/main/java/im/vector/app/features/notifications/NotifiableEventResolver.kt#L77
for now I'm filtering out redacted since we're handling them explicitly in the notification logic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Fixes the redacted messages not being removed and filters out simple redacted messages (as we're handling them)
See #4274 (comment)
#1491