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 sorting of WhatsApp messages (#2337 complement) #2352

Merged
merged 1 commit into from
Oct 27, 2024
Merged

Conversation

wladimirleite
Copy link
Member

The fix implemented by PR #2338 overlooked WhatsApp calls.
They were incorrectly moved to end of the chat, as they don't have sortId (only timeStamp).

This PR should fix this, merging messages with and without sortId based on their timeStamp.
It adds an additional step after Collections.sort(messages), but it is O(n), in time and space, so there overhead is minimal.

Copy link
Member

@lfcnassif lfcnassif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An user recently reported this. Thank you @wladimirleite!

@lfcnassif lfcnassif merged commit 55818e1 into master Oct 27, 2024
2 checks passed
@lfcnassif lfcnassif deleted the #2337_FixSort branch October 27, 2024 16:27
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