tattle-made / whatsapp-scraper

2 stars 2 forks source link

changed msg equality to 2 minute buffer to fix an assert #43

Closed scottrogowski closed 3 years ago

scottrogowski commented 3 years ago

On merge, there is an assertion to ensure data integrity by comparing two lists of messages - one on the server and one locally. The assert was failing for 2 messages in a comparison of about 50 because the time on the two messages was one minute apart. This PR creates a two minutes of wiggle-room when testing message equality. Group, sender, and content have to all still equal each other.