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

Sort before generating WA chat report (another fix related to #2337) #2389

Merged
merged 1 commit into from
Dec 24, 2024

Conversation

wladimirleite
Copy link
Member

Fix #2337.

@lfcnassif, unfortunately I detected another issue related to #2337 in a real case, with a variety of conditions (backup merged, backups without the main database, databases without backups, multiple WA instances in a single device).

I just moved the call to Message.sort(), so now it will sort messages before generating the chat preview in all situations (before some cases were not covered).

@lfcnassif
Copy link
Member

Thanks for the fix @wladimirleite!

@lfcnassif lfcnassif merged commit 9919563 into master Dec 24, 2024
2 checks passed
@lfcnassif lfcnassif deleted the #2337_AnotherWASortFix branch December 24, 2024 17:14
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.

Error parsing WhatsApp DB (Comparison method violates its general contract)
2 participants