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

Fix mark as read in notifications to be saved immediately #14907

Merged
merged 2 commits into from
Oct 1, 2020

Conversation

noellabo
Copy link
Contributor

@noellabo noellabo commented Oct 1, 2020

This fix immediately calls the POST /api/v1/markers API when you press the ✓ button in the notification column header and when AppFocus.

Reason:

Currently, if the home timeline is updated within 30 seconds, debounce will postpone the marker POST, so many users are not doing the marker POST until the WebUI is unloaded.

POST (debounce flash) at the time of unloading often did not work as expected on mobile, and as a result, the marker was not updated. The same phenomenon occurs in Safari on PC.

A workaround to perform the unload is to switch from the WebUI to the user settings and back to the WebUI :-)

This also means that the home timeline marker may not be saved. It may be better to call regularly by throttle instead of debounce so that the state is not lost, but this PR does not deal with it.

@Gargron Gargron merged commit bec8b12 into mastodon:master Oct 1, 2020
@noellabo noellabo deleted the fix-mark-as-read-immediately branch October 1, 2020 02:29
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.

2 participants