Commit graph

53 commits

Author SHA1 Message Date
Steffen Vogel a1b8cf0ca9 Merge remote-tracking branch 'gh/dazzzl/yowsup2-port' into develop 2016-10-07 21:42:28 -04:00
Steffen Vogel 86b81b60a8 Merge remote-tracking branch 'gh/kiv1in/yowsup-2' into develop 2016-10-07 21:31:50 -04:00
Steffen Vogel ce2419ba27 Merge branch 'develop' of github.com:stv0g/transwhat into develop 2016-10-07 21:24:06 -04:00
kiv1n 118d65cbd8 Fix Yowsup stack and env 2016-08-10 16:14:46 +03:00
git-o-bot 5e1636237e always treat entity as unicode() when outputting it to logging 2016-04-27 23:08:47 +02:00
git-o-bot 5063966772 separated axolotol layers, use android env 2016-04-19 21:10:05 +02:00
DaZZZl b518fb07af Merge branch 'unicode-fixes' of https://github.com/moyamo/transwhat into moyamo-unicode-fixes
Conflicts:
	session.py
2016-04-12 17:04:03 +02:00
Daniel Hiepler 47dd2a0bdf some more encoding fixes 2016-04-12 14:53:15 +02:00
Daniel Hiepler f25046de2d fix encoding issues 2016-04-10 00:21:58 +02:00
moyamo 875717bf9a Revert "Patch YowAxoltolLayer to fix padding problems"
This reverts commit 4643bb433d.
2016-04-09 23:05:16 +02:00
moyamo ef50b4c1db Send timestamp with receipts (should help fix stream errors) 2016-04-09 22:48:19 +02:00
Steffen Vogel 22725c042f lots of whitespace cleanups 2016-04-06 22:02:40 +02:00
Steffen Vogel 22e5419cda Merge branch 'yowsup-2' into develop 2016-04-06 14:41:41 +02:00
DaZZZl 26dc1dbf04 fix unicode problems
first try to download encrypted images
2016-04-06 01:45:18 +02:00
Steffen Vogel 229d7b9e2e Merge pull request #53 from dazzzl/yowsup2-port
Read receipts & fix for group chat receipt asks

Thanks @dazzzl !
2016-04-05 21:24:19 +02:00
DaZZZl e357cef047 fix group receipt acks 2016-04-05 20:32:29 +02:00
moyamo 4643bb433d Patch YowAxoltolLayer to fix padding problems
These changes should be reverted when yowsup updates.
2016-03-24 10:52:45 +02:00
moyamo f6e2ba94cc Update S40YowsupEnv temporarily
This commit should be removed when yowsup updates.
2016-03-23 10:48:19 +02:00
moyamo df305b8491 Allow multiple pictures to be sent in a short period of time
Picture data was stored in the session object. This means that if you
send multiple pictures within a short period of time the last picture
would overwrite the data of the other pictures. This would cause
pictures to be lost. Now picture data is stored in closures
2016-01-09 17:12:59 +02:00
moyamo 3fba33ac8b Fully intialise with whatsapp on every login 2016-01-08 15:30:47 +02:00
moyamo 2c2c0fde8d Fix DeletePictureNotification 2016-01-07 23:24:58 +02:00
moyamo 8bbdbb970d Allow user to set their whatsapp profile picture 2016-01-07 21:44:55 +02:00
moyamo dbf4a477ec Prevent None callback from causing crashes 2016-01-07 21:12:59 +02:00
moyamo aeb43dff55 Add ability to request password after receiving sms code 2016-01-07 21:11:54 +02:00
moyamo 513cdbcf10 Add functionality to request sms code via bot 2016-01-07 18:39:25 +02:00
moyamo 9c32dfbb38 Update group subject when notification received 2016-01-07 12:58:03 +02:00
moyamo f57b276665 Update buddies when contact notification is received 2016-01-07 12:27:40 +02:00
moyamo 59f0af9f8d Request new profile picture on profile picture changed notification 2016-01-07 11:47:33 +02:00
moyamo 16bdc85471 Update buddies status when a notification is received 2016-01-06 19:50:13 +02:00
moyamo 8e1be86319 Correct the format of the contacts numbers when syncing 2016-01-06 17:49:20 +02:00
moyamo 2895f78ec7 Use the result of Sync to delete invalid numbers 2016-01-06 17:32:33 +02:00
moyamo 22cebef457 Revert upto c40d477667
Hard to find connection bugs are occuring. Reverting changes for now
2015-12-31 21:43:10 +02:00
moyamo fae4c648ee Use unicode string literals 2015-12-29 21:46:29 +02:00
moyamo 249e8582cb Remove YowLoggerLayer 2015-12-18 21:21:37 +02:00
moyamo 9434b1db6f Request contacts' statuses when user logs in 2015-12-14 20:14:20 +02:00
moyamo 5a8874c9b9 Subscribe to presence only after user has logged in
Buddy.py would try to subscribe to presence before the user had logged
in to whatsapp. A loginQueue was added, so that functions could be
deferred to login.
2015-12-02 19:32:55 +02:00
moyamo b34643a756 Handle a user leaving a group chat. 2015-11-29 16:32:33 +02:00
moyamo bd74021ca6 Typing \leave in a MUC will leave the group chat 2015-11-27 22:01:16 +02:00
moyamo a95b88e7c8 Remove duplicate MediaProtocolLayer
Prevents user from receiving duplicate media messages.
2015-11-23 14:57:39 +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 1c0ae79ec2 Fix join room, inform user of all groups, and new participants
In the previous implementation join_room was called on all groups immediately
after the user was authenticated.  When a user joined a group, join_room will be
called again. This was incorrect behaviour and confused spectrum. There was no
truncation error, thus _shortenGroupId and _lengthenGroupId have edited to be a
no-op (and should be removed in the next commit).

The correct behavoiur is to only call join_room in
whatsappbackend.py:handleRoomJoined, however the user may do this before the
groups have been loaded, in which case those requests must be added to a queue.

The bot informs the user of all the groups the user has joined and when the user
is added to a new group.
2015-10-26 19:27:35 +02:00
moyamo ecfa2d7f85 Attempt to fix groupchats 2015-10-09 18:42:59 +02:00
moyamo 6c12956dd6 Attempt to fix groupchats 2015-09-15 21:29:26 +02:00
moyamo 646f45434b Crude implementation of groupchat 2015-09-06 14:06:16 +02:00
moyamo 4fd313e516 Download whatsapp profile pictures
Everytime the user requests a VCard the profile pictures are updated.
The sha1hash hash of the picture is calculated and stored in buddy.
2015-09-06 00:14:12 +02:00
moyamo d2efa0dd7b Fix status message 2015-09-05 22:22:30 +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 67c5a7c951 Add presence updates and looping asyncore.loop()
Add functions to update presence and status

Make asyncore.loop() timeout after some time and call the functions in
the YowStack.__detachedQueue.
2015-09-02 17:04:49 +02:00