Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First time visiting site should mark everything read #52

Open
timwis opened this issue Aug 31, 2016 · 0 comments
Open

First time visiting site should mark everything read #52

timwis opened this issue Aug 31, 2016 · 0 comments

Comments

@timwis
Copy link
Owner

timwis commented Aug 31, 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:

  • 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.
@timwis timwis changed the title First time visiting site marks everything unread First time visiting site should mark everything read Sep 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant