Compare commits

...

2 Commits

Author SHA1 Message Date
Mads Marquart
9c81806b95 Bump version: 1.9.3 → 1.9.4 2020-01-14 23:29:58 +01:00
Mads Marquart
45303005b8 Fix onFriendRequest 2020-01-14 23:27:50 +01:00
3 changed files with 11 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
[bumpversion] [bumpversion]
current_version = 1.9.3 current_version = 1.9.4
commit = True commit = True
tag = True tag = True

View File

@@ -13,7 +13,7 @@ from ._client import Client
from ._util import log # TODO: Remove this (from examples too) from ._util import log # TODO: Remove this (from examples too)
__title__ = "fbchat" __title__ = "fbchat"
__version__ = "1.9.3" __version__ = "1.9.4"
__description__ = "Facebook Chat (Messenger) for Python" __description__ = "Facebook Chat (Messenger) for Python"
__copyright__ = "Copyright 2015 - 2019 by Taehoon Kim" __copyright__ = "Copyright 2015 - 2019 by Taehoon Kim"

View File

@@ -2768,9 +2768,15 @@ class Client(object):
msg=m, msg=m,
) )
elif topic == "jewel_requests_add": # Other notifications
from_id = m["from"] elif topic == "/legacy_web":
self.onFriendRequest(from_id=from_id, msg=m) # Friend request
if m["type"] == "jewel_requests_add":
from_id = m["from"]
# TODO: from_id = str(from_id)
self.onFriendRequest(from_id=from_id, msg=m)
else:
self.onUnknownMesssageType(msg=m)
# Chat timestamp / Buddylist overlay # Chat timestamp / Buddylist overlay
elif topic == "/orca_presence": elif topic == "/orca_presence":