alexandrite icon indicating copy to clipboard operation
alexandrite copied to clipboard

[Bug] inbox notification doesn't automatically update

Open donnielrt opened this issue 2 years ago • 2 comments

Hey, thanks for making this beautiful UI for lemmy!

It seems like that the unread message alert doesn't actually get updated automatically when the state changes:

image

If I right-click to open the notification in a new tab to read it (since I don't want to lose my position in the feed) and mark the notification as read, it still doesn't update until I reload the page.

Minor annoyance, but triggers my OCD :)

donnielrt avatar Aug 31 '23 20:08 donnielrt

It will update eventually, but Alexandrite polls very slowly for unread notifications, I think once every 20 minutes? I might make it a bit faster at some point, but I've also been thinking about making some system for cross-tab coordination so I can sync things like the unread count better without having to massively lower the polling interval.

sheodox avatar Sep 01 '23 03:09 sheodox

Gotcha, makes sense. Yeah, polling too often wouldn't be polite, and a cross-tab messaging system would probably be the way to go. Perhaps a service worker in the background? That might also help with things like blocking network requests for blocked instances, etc. if you ever choose to build it!

donnielrt avatar Sep 01 '23 04:09 donnielrt