loqui / im

Loqui IM allows you to use all your chat accounts in just one FirefoxOS or Ubuntu Touch app.
https://loqui.im
304 stars 112 forks source link

[WhatsApp] receive some messages several times #1080

Open tibtab opened 8 years ago

tibtab commented 8 years ago

Maybe loqui could look if the same message was received before and in case don't show it. This especially happens often when you have a bad connection and loqui is not sure if you received the message. (But it happens also unrelated to a bad connection) Here a log (I don't think it helps much in this case, but hey, a log xD ) (BTW it was the first message of a contact in a group I left and reentered in the hope to recreate #1077 but everything seemed to be working here properly with decryption and asking for the keys ect)

20:13:07 GMT+0200 (CEST)|  <message from="groupcreator1-1406711327@g.us" type="text" id="E10FA7546E1113375DDC6B88FE6737" participant="groupparticipent1@s.whatsapp.net" phash="1:Fw2T9jHK" t="1462903984" notify="namegroupparticipent1¡">
<enc v="2" type="skmsg">
3­’ÎÏ AÛv|ÿ¢zÑÑÄ1Ï|àÛ¡­è¤{+æX5zEKTÒJžÕúx©^q–ÚS£Û’Ç](÷U9BŒeòÆV
æž]
™Æ殈–=ՌŸ;£5cÅbVq    ¼%íËýÈSŠ</enc>
</message>
 ~ BinaryReader.prototype._readNextTree@app://dda7c8f0-e103-45c6-9c91-53447d360fc5/scripts/mozillahispano/coseme.js:5450:7 [BinaryReader]
20:13:07 GMT+0200 (CEST)|  <message from="groupcreator1-1406711327@g.us" type="text" id="E10FA7546E1113375DDC6B88FE6737" participant="groupparticipent1@s.whatsapp.net" t="1462903984" notify="namegroupparticipent1¡">
<enc v="2" type="pkmsg">
3‚ Õ!Æû 2Y=‰Se~'~8´‡ÓûàÜ]¸OÊqsq²2!·ÐY²:µàᗯ/ó[ø-\}û“,ɜgu‹3ö""³3
!k~œ”  HÒZÿƒs¡nfʖ&Å»QºÏ¼¾¯;+  "€21P­ÛUø8Š®€æ²Õ—çªMŸÒdb{n/ÅWŸÒ¤ÑSï{Àþ®    •hBD‘#ÞÌy]7æŸj¸D®b*hï ^`\ï^g⏄š4(óJ
.ùå.=ê膶Î×Év€ŒG˜Ÿ°é÷æQ{xGät¤Ê’=ñεÌō¿³bß(Þ¢§¢0µ×;</enc>
</message>
 ~ BinaryReader.prototype._readNextTree@app://dda7c8f0-e103-45c6-9c91-53447d360fc5/scripts/mozillahispano/coseme.js:5450:7 [BinaryReader]
20:13:07 GMT+0200 (CEST)|  Parsing message: {"_tag":"message","children":[{"_tag":"enc","children":[],"attributes":{"v":{"hexdata":"32"},"type":"skmsg"},"_data":{"hexdata":"3308ad92cecf0110011a2041db767cffa27ac391d1c431cf7ce0db13a1ade80ca4057b2be658357a454b54d24a9ed5fa7881a95e7196da53a3db92c75d28f75539428c1a651cf2c6560ae69e5d0d99c607e6ae88963dd58c9f3ba33563c56256718109bc25edcbfdc8538a"}}],"attributes":{"from":"groupcreator1-1406711327@g.us","type":"text","id":"E10FA7546E1113375DDC6B88FE6737","participant":"groupparticipent1@s.whatsapp.net","phash":{"hexdata":"313a46773254396a484b"},"t":"1462903984","notify":{"hexdata":"4361726f6c696e6120e299a1"}},"_data":null} ~ parseMessage@app://dda7c8f0-e103-45c6-9c91-53447d360fc5/scripts/mozillahispano/coseme.js:7142:5 [ReaderThread]
20:13:07 GMT+0200 (CEST)|  ENCRYPTED GROUP MESSAGE,skmsg,2,
20:13:07 GMT+0200 (CEST)|  Parsing message: {"_tag":"message","children":[{"_tag":"enc","children":[],"attributes":{"v":{"hexdata":"32"},"type":"pkmsg"},"_data":{"hexdata":"330882a0d502122105c6fba032593d12068953657e277e38b4871fd3fbe0dc5db84fca71730371b2321a2105b7d059b23ab5e0e197af2ff35b8df8812d5c7dfb932c18c99c67751c8b33f62222b301330a21056b7e9c9400a048d25aff830f73a10c6e66ca9626c515bb51bacfbcbe0caf3b2b1000180022800101323150ad1edb55f838108aae80e613b2d597e7aa4d9fd21864627b6e2fc5579f0cd2a4d153ef7bc01bfeae09956842449123decc795d37e69f6ab844ae622a68efa05e605c12ef5e030e67e28f849a1634281ff34a0a2e1af9e52e3deae886b619ced7c91f76808c47989f04b0e9f7e6517b7847e474a4ca0c923df118ceb5ccc58d12bfb362df28dea2a7a20630b5d73b"}}],"attributes":{"from":"groupcreator1-1406711327@g.us","type":"text","id":"E10FA7546E1113375DDC6B88FE6737","participant":"groupparticipent1@s.whatsapp.net","t":"1462903984","notify":{"hexdata":"4361726f6c696e6120e299a1"}},"_data":null} ~ parseMessage@app://dda7c8f0-e103-45c6-9c91-53447d360fc5/scripts/mozillahispano/coseme.js:7142:5 [ReaderThread]
20:13:07 GMT+0200 (CEST)|  ENCRYPTED GROUP MESSAGE,pkmsg,2,
20:13:07 GMT+0200 (CEST)|  DECRYPT ERROR,
20:13:07 GMT+0200 (CEST)|  Write node called with  {"_tag":"receipt","children":[{"_tag":"registration","children":[],"attributes":{},"_data":"9!tû"},{"_tag":"retry","children":[],"attributes":{"count":"1","id":"E10FA7546E1113375DDC6B88FE6737","v":"1"},"_data":null}],"attributes":{"to":"groupcreator1-1406711327@g.us","id":"E10FA7546E1113375DDC6B88FE6737","type":"retry","participant":"groupparticipent1@s.whatsapp.net"},"_data":null} ~ self._writeNode@app://dda7c8f0-e103-45c6-9c91-53447d360fc5/scripts/mozillahispano/coseme.js:7917:7 [ConnectionManager]
20:13:07 GMT+0200 (CEST)|  <receipt to="groupcreator1-1406711327@g.us" id="E10FA7546E1113375DDC6B88FE6737" type="retry" participant="groupparticipent1@s.whatsapp.net">
<registration>
9!tû</registration>
<retry count="1" id="E10FA7546E1113375DDC6B88FE6737" v="1">
</retry>
</receipt>
 ~ BinaryWriter.prototype._write@app://dda7c8f0-e103-45c6-9c91-53447d360fc5/scripts/mozillahispano/coseme.js:4892:1 [BinaryWriter]
20:13:07 GMT+0200 (CEST)|  getLocalSignedPreKeyPair,977845
20:13:07 GMT+0200 (CEST)|  getLocalSignedPreKeyPair,[object Object]
20:13:07 GMT+0200 (CEST)|  getLocalPreKeyPair,5591042
20:13:07 GMT+0200 (CEST)|  Received socket data: 61 bytes! ~ BinaryReader.prototype.onSocketData@app://dda7c8f0-e103-45c6-9c91-53447d360fc5/scripts/mozillahispano/coseme.js:5356:5 [BinaryReader]
20:13:07 GMT+0200 (CEST)|  <ack from="groupcreator1-1406711327@g.us" class="receipt" type="retry" id="E10FA7546E1113375DDC6B88FE6737" participant="groupparticipent1@s.whatsapp.net">
</ack>
 ~ BinaryReader.prototype._readNextTree@app://dda7c8f0-e103-45c6-9c91-53447d360fc5/scripts/mozillahispano/coseme.js:5450:7 [BinaryReader]
20:13:08 GMT+0200 (CEST)|  getLocalPreKeyPair,[object Object]
20:13:08 GMT+0200 (CEST)|  getLocalIdentityKeyPair,[object Object]
20:13:15 GMT+0200 (CEST)|  Received socket data: 215 bytes! ~ BinaryReader.prototype.onSocketData@app://dda7c8f0-e103-45c6-9c91-53447d360fc5/scripts/mozillahispano/coseme.js:5356:5 [BinaryReader]
20:13:15 GMT+0200 (CEST)|  <message from="groupcreator1-1406711327@g.us" type="text" id="E10FA7546E1113375DDC6B88FE6737" participant="groupparticipent1@s.whatsapp.net" phash="1:Fw2T9jHK" t="1462903985" notify="namegroupparticipent1¡">
<enc v="2" type="skmsg">
3­’ÎÏ *‡8аJzK­+o–§’¦e>{'8ĺ‡½¤¬Ú5¦ü—ÒDQÌâ(ý|OG x,ÆYÝvh_Åmkéz o&Mz Ǥmþòho ʑÈ_E£,qã›Üyu</enc>
</message>
 ~ BinaryReader.prototype._readNextTree@app://dda7c8f0-e103-45c6-9c91-53447d360fc5/scripts/mozillahispano/coseme.js:5450:7 [BinaryReader]
20:13:15 GMT+0200 (CEST)|  Received socket data: 231 bytes! ~ BinaryReader.prototype.onSocketData@app://dda7c8f0-e103-45c6-9c91-53447d360fc5/scripts/mozillahispano/coseme.js:5356:5 [BinaryReader]
20:13:16 GMT+0200 (CEST)|  <message from="groupcreator1-1406711327@g.us" type="text" id="E10FA7546E1113375DDC6B88FE6737" participant="groupparticipent1@s.whatsapp.net" phash="1:Fw2T9jHK" t="1462903988" notify="namegroupparticipent1¡">
<enc v="2" type="skmsg">
3­’ÎÏ0Dd±U•$_u¶&Y‘¸½§…õò‘*¨RŸÎÂE®Šlž­âàZ‡;±¬
 vÿ»jrv‡üÅÑ+”
æLXžc†{ŇÇä–"c¬ ˆ˜pa1m3œÚ7çÍ_Ú*–  rüá ¾û¸"LÚ*ù†n‹€</enc>
</message>
 ~ BinaryReader.prototype._readNextTree@app://dda7c8f0-e103-45c6-9c91-53447d360fc5/scripts/mozillahispano/coseme.js:5450:7 [BinaryReader]
20:13:16 GMT+0200 (CEST)|  Received socket data: 36 bytes! ~ BinaryReader.prototype.onSocketData@app://dda7c8f0-e103-45c6-9c91-53447d360fc5/scripts/mozillahispano/coseme.js:5356:5 [BinaryReader]
 ~ BinaryReader.prototype._readNextTree@app://dda7c8f0-e103-45c6-9c91-53447d360fc5/scripts/mozillahispano/coseme.js:5450:7 [BinaryReader]
20:13:16 GMT+0200 (CEST)|  Parsing message: {"_tag":"message","children":[{"_tag":"enc","children":[],"attributes":{"v":{"hexdata":"32"},"type":"skmsg"},"_data":{"hexdata":"3308ad92cecf0110021a202a8738d0b04a187a104bad2b6f96a792a602653e7b2738c4ba87bda4051aacda35a6fc97d203445190cce228fd7c4f04470913782cc659dd76685fc5126d6be97a201b6f264d7aa0c7a4046dfef2686f20ca91c85f45a32c71e3189bdc79758d"}}],"attributes":{"from":"groupcreator1-1406711327@g.us","type":"text","id":"E10FA7546E1113375DDC6B88FE6737","participant":"groupparticipent1@s.whatsapp.net","phash":{"hexdata":"313a46773254396a484b"},"t":"1462903985","notify":{"hexdata":"4361726f6c696e6120e299a1"}},"_data":null} ~ parseMessage@app://dda7c8f0-e103-45c6-9c91-53447d360fc5/scripts/mozillahispano/coseme.js:7142:5 [ReaderThread]
20:13:16 GMT+0200 (CEST)|  ENCRYPTED GROUP MESSAGE,skmsg,2,
20:13:16 GMT+0200 (CEST)|  Parsing message: {"_tag":"message","children":[{"_tag":"enc","children":[],"attributes":{"v":{"hexdata":"32"},"type":"skmsg"},"_data":{"hexdata":"3308ad92cecf0110031a304464b15595245f75b6265991b8bda785f5f2912aa8529fcec245ae088a016c9ead0fe29de05a873bb1ac0a2076ffbb6a72761587fcc5d12b7f940c9d0de64c589e63867bc587c7e4962263ac2088987061316d339cda37e7cd5f05da2a960972fce1a0befbb8224cda1d2af9866e8b80"}}],"attributes":{"from":"groupcreator1-1406711327@g.us","type":"text","id":"E10FA7546E1113375DDC6B88FE6737","participant":"groupparticipent1@s.whatsapp.net","phash":{"hexdata":"313a46773254396a484b"},"t":"1462903988","notify":{"hexdata":"4361726f6c696e6120e299a1"}},"_data":null} ~ parseMessage@app://dda7c8f0-e103-45c6-9c91-53447d360fc5/scripts/mozillahispano/coseme.js:7142:5 [ReaderThread]
20:13:16 GMT+0200 (CEST)|  ENCRYPTED GROUP MESSAGE,skmsg,2,
20:13:20 GMT+0200 (CEST)|  DECRYPTED MESSAGE,126f0a1d343931353135303231343337312d3134303637313133323740672e7573124e3308ad92cecf0110011a20f0bc827dfb26babaf5b6d5fc0bf25ddae37168991d7883be2d3bee14471dba442221052b984e62256a5d5b309d7b7afdd58cdab00fcd13d4782610b0e2c070352b8606030303
20:13:20 GMT+0200 (CEST)|  DECODED MESSAGE,.com.whatsapp.proto.Message,[object Object]
20:13:20 GMT+0200 (CEST)|  SKDM,groupcreator1-1406711327@g.us,3308ad92cecf0110011a20f0bc827dfb26babaf5b6d5fc0bf25ddae37168991d7883be2d3bee14471dba442221052b984e62256a5d5b309d7b7afdd58cdab00fcd13d4782610b0e2c070352b8606
20:13:20 GMT+0200 (CEST)|  new sender key session,[object Object]
20:13:20 GMT+0200 (CEST)|  DONE onDecrypted,[object Event],[object Event]
20:13:21 GMT+0200 (CEST)|  DECRYPTED MESSAGE,0a0e54696d6f206973742073617565720808080808080808
20:13:21 GMT+0200 (CEST)|  DECODED MESSAGE,.com.whatsapp.proto.Message,[object Object]
20:13:21 GMT+0200 (CEST)|  GROUPMESSAGE,E10FA7546E1113375DDC6B88FE6737,groupcreator1-1406711327@g.us,groupparticipent1@s.whatsapp.net,decodedmessage,1462903985,true,Carolina ♡
20:13:21 GMT+0200 (CEST)|  RECEIVED,[object Object]
20:13:21 GMT+0200 (CEST)|  RECEIVE,decodedmessage,[object Object]
20:13:21 GMT+0200 (CEST)|  DONE onDecrypted,[object Event]
20:13:21 GMT+0200 (CEST)|  NEW
20:13:21 GMT+0200 (CEST)|  PUSHING,1128,[object Object]
20:13:21 GMT+0200 (CEST)|  Write node called with  {"_tag":"receipt","children":[],"attributes":{"to":"groupcreator1-1406711327@g.us","id":"E10FA7546E1113375DDC6B88FE6737","t":1462904001949,"type":"delivery","participant":"groupparticipent1@s.whatsapp.net"},"_data":null} ~ self._writeNode@app://dda7c8f0-e103-45c6-9c91-53447d360fc5/scripts/mozillahispano/coseme.js:7917:7 [ConnectionManager]
20:13:21 GMT+0200 (CEST)|  Expecting a string! number given instead. ~ BinaryWriter.prototype.writeString@app://dda7c8f0-e103-45c6-9c91-53447d360fc5/scripts/mozillahispano/coseme.js:4968:1 [BinaryWriter]
20:13:21 GMT+0200 (CEST)|  Expecting a string! number given instead. ~ BinaryWriter.prototype.writeString@app://dda7c8f0-e103-45c6-9c91-53447d360fc5/scripts/mozillahispano/coseme.js:4968:1 [BinaryWriter]
20:13:21 GMT+0200 (CEST)|  <receipt to="groupcreator1-1406711327@g.us" id="E10FA7546E1113375DDC6B88FE6737" t="1462904001949" type="delivery" participant="groupparticipent1@s.whatsapp.net">
</receipt>
 ~ BinaryWriter.prototype._write@app://dda7c8f0-e103-45c6-9c91-53447d360fc5/scripts/mozillahispano/coseme.js:4892:1 [BinaryWriter]
20:13:23 GMT+0200 (CEST)|  DECRYPTED MESSAGE,0a0e54696d6f2069737420736175657210101010101010101010101010101010
20:13:23 GMT+0200 (CEST)|  DECODED MESSAGE,.com.whatsapp.proto.Message,[object Object]
20:13:23 GMT+0200 (CEST)|  GROUPMESSAGE,E10FA7546E1113375DDC6B88FE6737,groupcreator1-1406711327@g.us,groupparticipent1@s.whatsapp.net,decodedmessage,1462903988,true,Carolina ♡
20:13:23 GMT+0200 (CEST)|  RECEIVED,[object Object]
20:13:23 GMT+0200 (CEST)|  RECEIVE,decodedmessage,[object Object]
20:13:23 GMT+0200 (CEST)|  DONE onDecrypted,[object Event]
20:13:24 GMT+0200 (CEST)|  FITS
20:13:24 GMT+0200 (CEST)|  PUSHING,1128,[object Object],[object Object]
20:13:24 GMT+0200 (CEST)|  Write node called with  {"_tag":"receipt","children":[],"attributes":{"to":"groupcreator1-1406711327@g.us","id":"E10FA7546E1113375DDC6B88FE6737","t":1462904004177,"type":"delivery","participant":"groupparticipent1@s.whatsapp.net"},"_data":null} ~ self._writeNode@app://dda7c8f0-e103-45c6-9c91-53447d360fc5/scripts/mozillahispano/coseme.js:7917:7 [ConnectionManager]
20:13:24 GMT+0200 (CEST)|  Expecting a string! number given instead. ~ BinaryWriter.prototype.writeString@app://dda7c8f0-e103-45c6-9c91-53447d360fc5/scripts/mozillahispano/coseme.js:4968:1 [BinaryWriter]
20:13:24 GMT+0200 (CEST)|  Expecting a string! number given instead. ~ BinaryWriter.prototype.writeString@app://dda7c8f0-e103-45c6-9c91-53447d360fc5/scripts/mozillahispano/coseme.js:4968:1 [BinaryWriter]
20:13:24 GMT+0200 (CEST)|  <receipt to="groupcreator1-1406711327@g.us" id="E10FA7546E1113375DDC6B88FE6737" t="1462904004177" type="delivery" participant="groupparticipent1@s.whatsapp.net">
</receipt>
 ~ BinaryWriter.prototype._write@app://dda7c8f0-e103-45c6-9c91-53447d360fc5/scripts/mozillahispano/coseme.js:4892:1 [BinaryWriter]
20:13:27 GMT+0200 (CEST)|  VIEWED,decodedmessage,E10FA7546E1113375DDC6B88FE6737,groupparticipent1@s.whatsapp.net,[object Object]
20:13:27 GMT+0200 (CEST)|  VIEWED,decodedmessage,E10FA7546E1113375DDC6B88FE6737,groupparticipent1@s.whatsapp.net,[object Object]
oli3 commented 8 years ago

I dont receive all to messages of groupe

cmeerw commented 8 years ago

@oli3 please open a new issue with debug logs, see https://github.com/loqui/im/wiki/Reporting-Bugs

cmeerw commented 8 years ago

hopefully fixed in #1114