Commit graph

28 commits

Author SHA1 Message Date
moyamo d9bd18013d Convert str literals to unicode literals 2016-04-09 22:07:26 +02:00
DaZZZl d6f0f11efc add support for participant VCards 2016-02-11 00:46:53 +01:00
moyamo 2c2c0fde8d Fix DeletePictureNotification 2016-01-07 23:24:58 +02:00
moyamo f57b276665 Update buddies when contact notification is received 2016-01-07 12:27:40 +02:00
moyamo 2895f78ec7 Use the result of Sync to delete invalid numbers 2016-01-06 17:32:33 +02:00
moyamo ef04f49152 Move requestVCard to BuddyList and send image_hash of new contact 2016-01-02 22:39:42 +02:00
moyamo d4a0593874 Replay changes from c40d477667 excluding fae4c648e
fae4c648e was causing encoding errors. It's changes have been reverted.
2016-01-01 11:42:11 +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 bed8214a11 Use base64 sha1hash instead of base16 2015-12-31 19:55:45 +02:00
moyamo 3781dcfc1c Handle case when buddy has no status message 2015-12-31 18:48:15 +02:00
moyamo fae4c648ee Use unicode string literals 2015-12-29 21:46:29 +02:00
moyamo 02a27ecac8 Fix encoding errors on status messages 2015-12-27 23:10:13 +02:00
moyamo 40131a06eb Fix undefined variable in buddy.py 2015-12-17 10:06:11 +02:00
moyamo 9434b1db6f Request contacts' statuses when user logs in 2015-12-14 20:14:20 +02:00
Steffen Vogel df773a9670 updated file headers 2015-12-03 13:53:21 +01:00
moyamo c44baf892d Properly detect/send presence when updating buddy 2015-12-02 22:51:29 +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 8385888e97 Minor bug fixes 2015-12-01 23:21:38 +02:00
moyamo 107354af81 Move updateRoster code to BuddyList 2015-12-01 21:57:53 +02:00
moyamo da8a415d32 Remove MySQL from Buddy.py 2015-12-01 21:33:02 +02:00
moyamo cb041395db Prevent a None image_hash from causing a TypeError 2015-11-10 20:39:25 +02:00
DaZZZl f269bf5be7 fix presence 2015-11-10 17:04:20 +01:00
root 98b9487c7f send imgaes, locations, ...
fix presence
2015-11-09 23:09:12 +01: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 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 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
Steffen Vogel 5fb1934cc5 added copyright and author infos 2013-08-02 01:45:51 +02:00
Steffen Vogel fc75a626cb renamed roster.py to buddy.py 2013-06-28 19:46:25 +02:00