You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since there's no lastRead property in localStorage, it shows every conversation as completely unread. Instead, it should show them all as "read" until a new message comes in.
Ideas:
If lastRead property doesn't exist in localStorage, set every conversation's lastRead to the current timestamp (but the subscription doesn't know about all the conversations)
Set a new property in state called firstRead and have the view also compare to that timestamp. It would only be set on the first visit to the page.
The text was updated successfully, but these errors were encountered:
timwis
changed the title
First time visiting site marks everything unread
First time visiting site should mark everything read
Sep 1, 2016
Since there's no
lastRead
property in localStorage, it shows every conversation as completely unread. Instead, it should show them all as "read" until a new message comes in.Ideas:
lastRead
property doesn't exist in localStorage, set every conversation'slastRead
to the current timestamp (but the subscription doesn't know about all the conversations)firstRead
and have the view also compare to that timestamp. It would only be set on the first visit to the page.The text was updated successfully, but these errors were encountered: