From ba103066b8e561265b12d03e212cb527c84eb2d1 Mon Sep 17 00:00:00 2001 From: DeltaF1 Date: Tue, 6 Feb 2018 00:30:35 -0500 Subject: [PATCH] Restored onFriendRequest functionality --- fbchat/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fbchat/client.py b/fbchat/client.py index 5db610f4..71f99d3c 100644 --- a/fbchat/client.py +++ b/fbchat/client.py @@ -1543,9 +1543,9 @@ def getThreadIdAndThreadType(msg_metadata): # # self.onSeen(m.get('realtime_viewer_fbid'), m.get('reader'), m.get('time')) - # elif mtype in ['jewel_requests_add']: - # from_id = m['from'] - # self.on_friend_request(from_id) + elif mtype in ['jewel_requests_add']: + from_id = m['from'] + self.onFriendRequest(from_id=from_id, msg=m) # Happens on every login elif mtype == "qprimer":