Unread not updating after viewing site in another browser


(Jacob Chapel) #1

This keeps happening when I go between my phone and computer on my forum.

My phone for instance will update the unread count and other things like notifications but even though I’ve viewed the posts on my computer the count doesn’t update.

See example:

It only fixes itself with a hard reload of the page. It also has happened the other way with desktop being stuck.


(Bill Ayakatubby) #2

This seems like a duplicate of several other reports:

https://meta.discourse.org/t/unread-count-doesnt-always-update/18763?source_topic_id=20528

(Jeff Atwood) #3

@sam I am very sick of these reports. When the unread tab is entered, run a query on that tab to obtain the correct value for unread and replace the value on the tab if it differs.


(Sam Saffron) #4

I just fixed this:

https://github.com/discourse/discourse/commit/85e885fcfab356cc3f6cec11029d77ed632092e3

I can not afford to add another query here, it can get expensive on big sites, but can sync up the data correctly, as long as it fits in less than 1 page.


(Sam Saffron) #5