Skip to content

Instantly share code, notes, and snippets.

@sepehrmm
Created May 20, 2017 21:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sepehrmm/cf851a2e66212e1cd82ce6783c04c54c to your computer and use it in GitHub Desktop.
Save sepehrmm/cf851a2e66212e1cd82ce6783c04c54c to your computer and use it in GitHub Desktop.
Read WhatsApp Web messages without opening to stop blue ticks appearing
chatHistory = Store.Chat.models.filter(function(a) {
if (a.name == "PUT YOUR CONTACT'S NAME HERE.") {
return true
}
})[0].msgs.models;
for (i = chatHistory.length - 1; i >= 0; i--) {
console.log(chatHistory[i].attributes.body);
}
@sepehrmm
Copy link
Author

sepehrmm commented Aug 7, 2018

doesn't work anymore, needs to be updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment