Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Duplicate messages using latest purple-facebook #199
This still would not provide a bullet proof solution. Messages can be duplicated after differing periods of time as well, rather than just sequentially. So, rather than checking the last n messages, it really needs to check the messages over a time span. Even still, it would be hard to get this timing right as well.
The proper solution, as noted in ad2ee74, is to use the latest revision of the Facebook Messenger Protocol. The only reason ad2ee74 exists is because it is very simple, and it addresses the most common duplication case. I really have no interest in making things overly complex, especially when it will never provide a bullet proof solution. Moreover, it is not even a proper solution to the issue at hand.