Skip to content

Conversation

fieryhenry
Copy link
Contributor

This fixes an issue where the number of notifications can be displayed as TRUE rather than
the actual amount of notifications.

See here:
Screenshot from 2025-07-18 20-08-30

The issue comes from the update_ticker_count function in notifications.js. It uses the storage value STORAGE_KEY_STREAM which is a boolean value rather than STORAGE_KEY_NOTIF_COUNT which is the actual number of notifications.

The issue doesn't always occur because when you refresh the page, the new HTML returned by the server returns the correct amount of notifications, it's only an issue if you receive a new notification while watching a video.

`update_ticker_count` used to use STORAGE_KEY_STREAM to get the number of notifications which is a boolean value, now it uses STORAGE_KEY_NOTIF_COUNT which is an integer
Not sure if this is necessary as I think it should always be present in storage, but just in case it isn't
@syeopite syeopite added the ready label Aug 23, 2025
@syeopite syeopite changed the title Fix notification count of TRUE Frontend: Fix notification count of TRUE Aug 23, 2025
@syeopite syeopite merged commit 15099ac into iv-org:master Aug 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants