sheodox / alexandrite

A beautiful and convenient desktop-first alternate web UI for Lemmy.
https://alexandrite.app
GNU Affero General Public License v3.0
233 stars 21 forks source link

[Bug] inbox notification doesn't automatically update #70

Open donnielrt opened 1 year ago

donnielrt commented 1 year ago

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 :)

sheodox commented 1 year ago

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.

donnielrt commented 1 year ago

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!