-
Notifications
You must be signed in to change notification settings - Fork 272
fix: remove notification from state on open #789
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
fix: remove notification from state on open #789
Conversation
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, just needs some more coverage
This comment was marked as resolved.
This comment was marked as resolved.
Coverage has now increased 🚀 |
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.
Thanks @adufr
@@ -33,6 +34,9 @@ export const NotificationRow: React.FC<IProps> = ({ | |||
|
|||
if (settings.markAsDoneOnOpen) { | |||
markNotificationDone(notification.id, hostname); | |||
} else { | |||
// no need to mark as read, github does it by default when opening it |
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.
Thanks for the explanation!
* fix: remove notification from state on open * tests: add test for `removeNotificationFromState`
Related issues
Context
Remove notification from state when clicking on it.