Skip to content
This repository has been archived by the owner on May 9, 2019. It is now read-only.

Error when received more than one contact at same time #93

Open
iFernandoSousa opened this issue Aug 31, 2018 · 0 comments
Open

Error when received more than one contact at same time #93

iFernandoSousa opened this issue Aug 31, 2018 · 0 comments

Comments

@iFernandoSousa
Copy link

When someone send me more than one contact at the same time, the code stop.
Debugging the code I saw that, when the message has more than one contact, the type of message is contact_array

This is the message when I receive just one contact:

<message type="media" id="DD9CC7BFFA0F87BEA5D96958BFD4BF92" from="[email protected]" t="1535680561" notify="Fernando Sousa">
<enc type="msg" v="2" mediatype="contact">
b'3\n!\x05G\xbd\xe3\x91c\xcfk\xc6\xf6\xbb\xbc\xfe\xff\x96h\'U\xf4\xc6\xe6\x86\x8e\x84\x06\xb8\x85\xe4u\xfa\x88zc\x10\x05\x18\x01"\xc0\x01\x00\xa6^x\x93\xd5\x01\xc5\xf9,\x96Y\x99\x04^\x1a\x0b\x7f\xce\x16\x85\xc0K\xe5\xf3(}J\xd8\x91\r\x00\x89\xd4,!I\xe0#(\xb7\x9aZ\x7fb\x98\x934\xff\xb4?h\x13\xbf\xb2\x8cU\x9d\x96\xe8[!h\x0f%\t\x83\x8b\xfcP\xa9\xf2\xe4\xd2\x04\xf1hgjP\x9a\xf9*5\xb9 \x91\xf0e\xa3V+\xfe\xf2,\x88\xf4\xc9q[\xbd\xaar\xb5NK\x92\xf7\xbe\xef\x9b\xd5-\xc1\xbb\x1c\x1f\xe2*\x8c\xc6\xfe`\x9c\xb1\x03{_V}\x029\xf2\xfc\xe1\x7f\xa3\xd8\xf1\x01\xf2la\xd6\xd3\xbe1\xf3G~zz\x82L/\x9a\x8d\x0bQ\x0b(\xfd\xcaSM\xb0\x8a\xe9\x95C2\xd68\xd6\x8d\xb72\xbc\xba\x084\xc6\x1cg\xd6\x1e,\x9a\xb0j\xe3\x03&O\x07;\x99\x98\xbd\x8e'
HEX:b'330a210547bde39163cf6bc6f6bbbcfeff96682755f4c6e6868e8406b885e475fa887a631005180122c00100a65e7893d501c5f92c965999045e1a0b7fce1685c04be5f3287d4ad8910d0089d42c2149e02328b79a5a7f62989334ffb43f6813bfb28c559d96e85b21680f2509838bfc50a9f2e4d204f168676a509af92a35b92091f065a3562bfef22c88f4c9715bbdaa72b54e4b92f7beef9bd52dc1bb1c1fe22a8cc6fe609cb1037b5f567d0239f2fce17fa3d8f101f26c61d6d3be31f3477e7a7a824c2f9a8d0b510b28fdca534db08ae9954332d638d68db732bcba0834c61c67d61e2c9ab06ae303264f073b9998bd8e'
</enc>
</message>

And this is when I receive with more than one:

<message type="media" id="8E53D5CBC931C0A4814622AA029CD1EC" from="[email protected]" t="1535680385" notify="Fernando Sousa">
<enc type="msg" v="2" mediatype="contact_array">
b'3\n!d\xeb[\xfa{\xb1\x14\xa5\xe3A\x83\xb6h\x83^\x98\x14\xeb6s\x12\x7f\x05\x9aI\xc0M,\xd7\xa9-\x1d\xcbJ\x02\xe99\xbd\xbe\xf9d\x1b\xf3\x03\xa8@\x9d%Y\xf1\xe9\x96\xe2|\x18v\xadg9\xb7\xb6\xac\xf7\xa7@\xe2C\x0bbH\xc45{\xa1\x15t\x9fJJ\x18\x97\x83n`\xfb\xe4p\x95\x9f3\xd2sZH;\xf5\xc1\xc8\xa4&\x02\x92\xd5|\xca\xb7\xb9\xe3\x83^\x84J\xbbA\xb7\xb6_\x18\xb8\x04\xb0(C\x8a\xac\x02\xa9"\xd6\x0e\x16J\x8b\x1bj\xd9\xd0\r\x9c\xa4\xa3J\xf4@\x07\xc1\xeev^8\xb68\x11\xd6\x94\x12Ok\xea\xb4\xd5\xdf\xb7\xef\x02\xbb\xe2\xf8C- 48a8550c45cf279b7ed10e7655ed4b016142e453de5462df391adafd665baff22417c1eb64260bb65df92526f5fccef4f770d8cbd5f148bdff565c2eec892f286a1514de5e76d108eb26baa10b3096abc07bf8cdfe3afb916182a66978b2320b6e26b67228a10d004878ebf620cb64aceb538d4a276aff6644d1e30af57a7a95bab8311ae4d2864e917f45d9c1c4faf4a22e7db4a229cce2951191ebf74673ea879caba7756e2fdf0ca89b3a5e1762e564e5b10af253c0e7c74b478b1b18141d5b1aa50df1e69574781f44798dbf3b25d7e8ed30e61e86adc8d7c3f2de3770021fa357b03b4099662ebf8f3ca778fdabb9b43f4bf06fd53d466cb4338912fca7279d7dd443bdf7b12623a81fe263ccb60ded48531c7fbcd8b7d069853af70a1df8fb72b8cad756f520d5fcfd5acc4d636f300c6ca6c48ce23a1a48a313f6d299bc10857e0f7821da2270a14de8000bf27f6f7e2661ff667ed6d53b4c2c4d7555f8bb1683875c1ee05a01cb4640e5'
</enc>
</message>

I delete some pieces of message, because of the size, but it is a little bit to reproduce, just need to send more than one contact at the same time.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant