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

Track server date via headers to avoid drifting. #119

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hackmud-dtr
Copy link
Contributor

With the new-ish time-gate on after, a user who doesn't get many chats but continues to request after:date of last chat will eventually get locked out of new chats.
Previously, this used local dates to try to avoid that, but local dates need not correlate at all to server dates. This patch uses server dates from the date header where possible, falling back to local dates only if necessary.
This should make it more reliably avoid drifting and getting stuck without chats forever.

With the new-ish time-gate on after, a user who doesn't get many chats but continues to request after:date of last chat will eventually get locked out of new chats.
Previously, this used local dates to try to avoid that, but local dates need not correlate at all to server dates. This patch uses server dates from the date header where possible, falling back to local dates only if necessary.
This should make it more reliably avoid drifting and getting stuck without chats forever.
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.

1 participant