WhatsApp-Chat-Exporter: Problem with Senders' names null in some chats only
Hello, thank you for your lifesaver software š
Using Android on Google Pixel 2 XL
Iāve been able to extract all my wa databases with your extractor software. Also the exporter works without any problem.
Nonetheless some exported html chats have all their sendersās name with the name of the chat, and by debugging I could see that msg.sender is null.
I canāt figure out why this happens with only some chats
Those chats, and only those, have a filename number-name where number is starting by 120363
The groups that are working all have their filename without the number part in their exported html files.
In the āmessagesā function in ..../Whatsapp_Chat/WhatsApp-Chat-Exporter/venv/lib/python3.11/site-packages/Whatsapp_Chat_Exporter/extract.py the c.execute() call happens in the sqlite3.OperationalError block.
I wander if thereās a mistake in the code being that wa reports all the senders correctly
I would love to solve this (itās urgent because wa is clogging my cell completely)
Iām able to understand the ājid jid_groupā part in the line 263 of extract.py.
'LEFT JOIN jid jid_group
ON jid_group._id = message.sender_jid_row_id'
only intuitively. I guess is accepting the first of the two matching field that is not null. I couldnāt find documentation for that syntax with two field names.
Also the sendersā avatars are not present, I would love to have them, but thatās of course much less important, and probably for a separate question.
Thanks for any help
M
About this issue
- Original URL
- State: closed
- Created 9 months ago
- Comments: 20 (9 by maintainers)
Commits related to this issue
- An attempt to fix #67 — committed to KnugiHK/WhatsApp-Chat-Exporter by KnugiHK 8 months ago
- Bug fix on missing sender in group chats #67 — committed to KnugiHK/WhatsApp-Chat-Exporter by KnugiHK 8 months ago
@KnugiHK,
Ok, glad to see that my suggestions are already being considered.
Iāll be willing to try with the release.
Best regards šš.
Definitely all PM chats are working right. š
@KnugiHK Thanks again for your effort⦠Your software is great! šš
Hi everyone. Commit 7da71e8 should fixed the problem. Feel free to try it in
devbranch.I hope this coming week to be able to find the time to fix it, or at least to test KnugiHKās explanation.
Thatās great. I looked at the code and I see this pattern recurring in many places, so I guess Iāll wait for your fix. The only thing maybe is to know if youāll be able to fix it this month or not, otherwise I may consider to fix it myself and open a PR for that.
I looked into the folder Media/WhatsApp Profile Photos/ and it appears empty⦠maybe the files are hidden or placed somewhere else? I wander if a simple hint could lead me to a quick fix. But again, this is way less important for me. (or I can open a separate thread for it, svp let me know).
Thank you so much for your prompt replies, very very helpful for me.
Best, Marcello