Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
[Deploy] Glowing Bear #69
Glowing Bear - WeeChat web front-end
Link to your repository
@adlk the thing is that Glowing Bear not only shows the message count per channel, but also an aggregated message count in the top of it's UI. This is not an 'additional' unread channel, but just a summation of all unread counts for every channel. I do the
However, to be sure that the function will never return
(Edit) Additionally: while the Glowing Bear UI will only add the count badges to the DOM for channels if there is a notification, the aggregated counter on the top is always present in the DOM but hidden by CSS. So even if there's 0 unread channels, it will still count the aggregated count. So in practice, the function would already not return negatives values. However, added change also makes sure the count can never be negative even if Glowing Bear changes their UI.