Commit Graph

11 Commits

Author SHA1 Message Date
moyamo a5877bc1a9 Try to prevent transwhat from crashing on malformed protobuf 2015-10-09 18:45:17 +02:00
moyamo 29d92b456e Shorten the name of groupchats to overcome truncation bug
The names of groupchats are truncated internally to 22 characters.
This causes many problems with groupchats, since spectrum incorrectly
identifies the chat by the long name.

To overcome this the phoneNumber-unixTime is converted to hexadecimal,
to shorten the groupchat below 22 characters
2015-10-09 18:42:59 +02:00
moyamo ecfa2d7f85 Attempt to fix groupchats 2015-10-09 18:42:59 +02:00
moyamo f1a6b109f7 Regenerate protocol buffers 2015-10-09 18:42:59 +02:00
moyamo 652a9f0463 Pass only expected data to parseFromString
Spectrum2/backend.py:handleDataRead is called when transwhat receives
data from Spectrum. The parameter `data' contains multiple (or pieces
of) WrapperMessages. Instead of passing all the data to
wrapper.ParseFromString. We should only pass a single WrapperMessage.
2015-10-09 18:31:57 +02:00
moyamo 4c365e3f81 Add receiveing of images, videos and sound files
When a whatsapp buddy sends an image, video or sound to the spectrum
user, the spectrum user will receive a URL that links to the media.

FileTranfer in spectrum is not working, apparently. Thus media cannot be
sent yet.
2015-09-05 22:05:34 +02:00
moyamo e43aeedd9d Add presence and chatstate
* Chatstate typing and typing stop is sent and received
 * Presence is received and presence is sent when user types
2015-09-03 20:04:29 +02:00
moyamo e94aa383bf Remove redundent debug logs 2015-06-21 15:20:22 +02:00
moyamo c06bfac0a9 Add logging to IOChannel 2015-02-27 18:06:30 +02:00
Steffen Vogel 111050fb22 added handleBuddyRemoved 2013-06-28 19:44:29 +02:00
Steffen Vogel 528d4ed759 initial code commit 2013-05-31 20:53:21 +02:00