Repository navigation
Fix: Send the time zone when loading more search results in the sidebar - #781
Merged
axllent merged 1 commit intoNov 28, 2026
Merged
Conversation
Owner
|
Thanks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
With a
before:orafter:search, the message view sidebar can skip messages when loading more results.The search view sends
tz=<configured time zone>with date searches, but the sidebar's paging request (initLoadMoreAPIParamsinMessageView.vue) did not. The server then evaluated the date in its own local zone, so the sidebar paged through a different result set than the one first shown. For example, with a UTC server, a browser set toAmerica/Los_Angelesandbefore:2026-11-24, a message received at 04:00Z on 24 November matches the initial search but not the sidebar request.The sidebar now sends
tzunder the same condition as the search view.Related issues
None.
Type of change
Test plan
server/ui-src/views/MessageView.test.js: the twoafter:/before:cases fail without the change and pass with it; searches without a date filter, the plain mailbox list and an empty time zone setting still send notz.npm test,npm run lintandnpm run packagepass.AI assistance disclosure
Claude Code was used to find the bug, write the change and the test, and draft this description.
Checklist