Commit graph

20 commits

Author SHA1 Message Date
moyamo 06388685d4 Update SpectrumBackend and build protocol buffers
This is to use the new handleBuddies feature.
2015-12-01 20:07:57 +02:00
moyamo 03d4a98fc7 Change error messages is backend.py to debug messages 2015-11-23 15:34:37 +02:00
root c5b42044b2 Merge branch 'groupchat-fix' of https://github.com/moyamo/transwhat into moyamo-groupchat-fix
Conflicts:
	Spectrum2/backend.py
	session.py
	yowsupwrapper.py
2015-11-10 13:24:40 +01:00
root 98b9487c7f send imgaes, locations, ...
fix presence
2015-11-09 23:09:12 +01:00
moyamo dbb66e0381 Prevent no caption in an image from crashing transwhat 2015-11-05 17:57:16 +02:00
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 f4e85f7689 Try to prevent transwhat from crashing on malformed protobuf 2015-09-21 21:45:18 +02:00
moyamo 7f1c9cd0db 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-09-21 20:30:11 +02:00
moyamo 6c12956dd6 Attempt to fix groupchats 2015-09-15 21:29:26 +02:00
moyamo e92d36a240 Regenerate protocol buffers 2015-09-14 19:55:53 +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