Skip to content

Conversation

@adufr
Copy link
Contributor

@adufr adufr commented Feb 18, 2024

Related issues

Context

Remove notification from state when clicking on it.

setchy
setchy previously approved these changes Feb 18, 2024
Copy link
Member

@setchy setchy left a 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

@setchy setchy added the bug Something isn't working label Feb 18, 2024
@adufr

This comment was marked as resolved.

@setchy setchy dismissed their stale review February 18, 2024 14:24

Coverage

@adufr
Copy link
Contributor Author

adufr commented Feb 18, 2024

Coverage has now increased 🚀

Copy link
Member

@setchy setchy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @adufr

@setchy setchy merged commit 6131e57 into gitify-app:main Feb 18, 2024
@adufr adufr deleted the fix/remove-notification-from-state-on-open branch February 18, 2024 18:48
if (settings.markAsDoneOnOpen) {
markNotificationDone(notification.id, hostname);
} else {
// no need to mark as read, github does it by default when opening it
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the explanation!

adufr added a commit to adufr/gitify that referenced this pull request Feb 19, 2024
* fix: remove notification from state on open

* tests: add test for `removeNotificationFromState`
@setchy setchy added this to the Release 5.0.0 milestone Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Development

Successfully merging this pull request may close these issues.

Clicking a notification marks it as read but doesn't remove it from the app

3 participants