jaysylvester / comitium

Forum software for Node.js
MIT License
0 stars 1 forks source link

Unread private topic indicator doesn't always clear #173

Closed jaysylvester closed 6 years ago

jaysylvester commented 6 years ago

Occasionally, the header cache will clear and reload before the private topic view time update occurs, keeping the icon in its unread state.

jaysylvester commented 6 years ago

Moving viewTimeUpdate() into listen() now ensures the unread marker is updated before the header is rendered/cached in all cases. Should fix this issue. Side benefit is that the unread marker is now cleared during the same topic request, whereas previously it would remain unread because the header was rendered before viewTimeUpdate() executed.