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

Desktop-Notifs: include the user id into the storage key for local browser storage #3308

Merged
merged 1 commit into from
Apr 8, 2017

Conversation

rabuzarus
Copy link
Collaborator

There was an issue with desktop notifications when switching between different users.
The time stamp of the last notification was saved to the browsers local storage. But this value was overwritten on user change. With the PR we add the user id to the local storage key to bind the last item time stamp to the specific user.

Because there last item value isn't existent if the user does use a new browser I added !e.seen to the condition which would run the desktop notifications. This should prevent that all old already seen notification would be displayed on a new browser.

@annando annando merged commit 1a05efb into friendica:develop Apr 8, 2017
@rabuzarus rabuzarus deleted the 20170408_-_fix_desktop_notifs branch April 8, 2017 20:56
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

Successfully merging this pull request may close these issues.

None yet

2 participants