-
Notifications
You must be signed in to change notification settings - Fork 160
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
Silent unexpected notifications #640
Comments
I'm new to this part of the app, so I'm not sure if I'm doing something wrong but in the current EAX:
Given the first point, I'm not sure how I can send an event that the device will receive but will later evaluate using the push rules. My bet was on the 'mentions and keywords only' behaviour, but it seems like it's not working as I expected it to. |
AFAIK push rules are being verified by I'm wondering what we should do on Android, set it to true and just miss the edge cases? Set it to false and try to somehow filter the notifications on the app (if it's possible at all), or set it to false and just ignore the push rules altogether? |
Also, just to double check, which types of events should we display in the notifications?
Anything else? I'm asking because right now, with the code we have from the initial implementation, every single type is being displayed, with some placeholder messages: private fun MessageLikeEventContent.toContent(): String {
return use {
when (it) {
MessageLikeEventContent.CallAnswer -> "CallAnswer"
MessageLikeEventContent.CallCandidates -> "CallCandidates"
MessageLikeEventContent.CallHangup -> "CallHangup"
MessageLikeEventContent.CallInvite -> "CallInvite"
MessageLikeEventContent.KeyVerificationAccept -> "KeyVerificationAccept"
MessageLikeEventContent.KeyVerificationCancel -> "KeyVerificationCancel"
MessageLikeEventContent.KeyVerificationDone -> "KeyVerificationDone"
MessageLikeEventContent.KeyVerificationKey -> "KeyVerificationKey"
MessageLikeEventContent.KeyVerificationMac -> "KeyVerificationMac"
MessageLikeEventContent.KeyVerificationReady -> "KeyVerificationReady"
MessageLikeEventContent.KeyVerificationStart -> "KeyVerificationStart"
is MessageLikeEventContent.ReactionContent -> "Reacted to ${it.relatedEventId.take(8)}…"
MessageLikeEventContent.RoomEncrypted -> "RoomEncrypted"
is MessageLikeEventContent.RoomMessage -> it.messageType.toContent()
MessageLikeEventContent.RoomRedaction -> "RoomRedaction"
MessageLikeEventContent.Sticker -> "Sticker"
}
}
} EDIT: taking a look at iOS' code, it seems like it's only for messages and invites, everything else should use the default notification. |
Make sure we do not display notifications for pushed events that do not match a push rule.
User story: element-hq/element-meta#1794.
The text was updated successfully, but these errors were encountered: