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

feat: Order threads by their new internal date field #2239

Merged
merged 2 commits into from
Mar 11, 2025

Conversation

LunarX
Copy link
Contributor

@LunarX LunarX commented Mar 10, 2025

The api now returns an internal_date field. Because some messages might not provide a date, the api has an internal_date field will never be null and if the message's date would be null, then the api will record the first time it saw that mail instead inside internal_date.

This new internal_date needs to be used for every form of sorting inside the app while the old date field needs to be used when displaying a message's date. The internal_date can be a fallback so we have something to display in case the old date is not defined.

I still need to find a better name for the old date property that I currently called originalDate. I'm looking for ideas

@LunarX LunarX added the enhancement Improve or expand upon an existing feature label Mar 10, 2025
@LunarX LunarX requested a review from KevinBoulongne March 10, 2025 15:43
@LunarX LunarX self-assigned this Mar 10, 2025
@LunarX LunarX merged commit 1e23655 into snooze-feature-branch Mar 11, 2025
6 checks passed
@LunarX LunarX deleted the internal-date branch March 11, 2025 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improve or expand upon an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants