mowolf / ChatAnalyzer

Java script webapp that analyzes your WhatsApp Chat history locally on your machine.
https://chatanalyzer.moritzwolf.com
Other
208 stars 41 forks source link

whatsapp bot secured messages considered as a user #29

Closed Nilegfx closed 5 years ago

Nilegfx commented 6 years ago

HI Moritz,

I liked the idea, I've a lot to think about how to improve this, I'll try to help as much as I can to improve my analysis skills.

my first catch is:

7/6/16, 3:50 AM - Messages to this chat and calls are now secured with end-to-end encryption. Tap for more info.

this line needs to be handled probably as now it considers it as a user.

I'll try to work on this one.

mowolf commented 6 years ago

Oh yeah. I know why this happens. The regex to find names searches for „-„ and „:“ (bc of different formats). If you want to fix that you can either run two different regexes (one with „:“ and one with „-„) and then take the results of the regex which has more matches.

Sent with GitHawk

mowolf commented 6 years ago

@Nilegfx please see this commit. Names that get detected, that have less then two messages get removed with this.

This should fix this problem most of the time.