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

Bugfix: handle unread_notification_count for ajax calls #16437

Closed

Conversation

ncounter
Copy link
Contributor

@ncounter ncounter commented Jul 1, 2024

Fixes #16433

@github-actions github-actions bot added the Frontend Things related to the OBS RoR app label Jul 1, 2024
@ncounter ncounter force-pushed the fix-missing-notification-counter branch from ec9a399 to d2b3e5c Compare July 1, 2024 13:57
@ncounter ncounter marked this pull request as draft July 1, 2024 14:20
@ncounter ncounter changed the title Bugfix: do not prevent initializing unread_notification_count for ajax calls Bugfix: handle unread_notification_count for ajax calls Jul 1, 2024
@danidoni
Copy link
Contributor

danidoni commented Jul 1, 2024

Why don't we set @unread_notificaitons = 0 when xhr in here? That way the exception for set_unread_notifications_count and this are close together

@ncounter
Copy link
Contributor Author

ncounter commented Jul 2, 2024

Closing in favor of #16441. It fixes the same issue but tackling it from a different perspective.

@ncounter ncounter closed this Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Frontend Things related to the OBS RoR app
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[production][package#users] undefined method `zero?' for nil:NilClass
2 participants