Skip to content
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 badge notification bug when private mode is enabled #1260

Merged
merged 5 commits into from
Feb 5, 2020
Merged

Fix badge notification bug when private mode is enabled #1260

merged 5 commits into from
Feb 5, 2020

Conversation

jyoo980
Copy link
Contributor

@jyoo980 jyoo980 commented Jan 29, 2020

Take a look at #1257 for more context.

The basic issue was that the conversations event was being sent only in cases when private mode was not enabled. This was fine for the majority of cases, but led to a bug in the notification badges not showing up.

This is a proposed fix where I refactored the logic to just always fire the conversations event and just have the Touch Bar component handle the display logic - looking back, this makes much more sense, and I'm embarrassed that I didn't implement this the first time 😅

Thanks @danielfbnunes for pointing this out!

Fixes #1257

Copy link
Collaborator

@CvX CvX left a comment

Choose a reason for hiding this comment

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

Thank you for the PR! I've made some minor adjustments. Merging! 🙂

@CvX CvX merged commit 4c56e81 into sindresorhus:master Feb 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Badge not working
2 participants