Call onTyping on "typ" or "ttyp" messages
FB returns "typ" for ONE-TO-ONE conversations and "ttyp" for GROUP conversations.
This commit is contained in:
@@ -1529,7 +1529,7 @@ class Client(object):
|
|||||||
self.onInbox(unseen=m["unseen"], unread=m["unread"], recent_unread=m["recent_unread"], msg=m)
|
self.onInbox(unseen=m["unseen"], unread=m["unread"], recent_unread=m["recent_unread"], msg=m)
|
||||||
|
|
||||||
# Typing
|
# Typing
|
||||||
elif mtype == "ttyp":
|
elif mtype == "typ" or mtype == "ttyp":
|
||||||
author_id = str(m.get("from"))
|
author_id = str(m.get("from"))
|
||||||
thread_id = str(m.get("thread_fbid"))
|
thread_id = str(m.get("thread_fbid"))
|
||||||
if thread_id == self.uid:
|
if thread_id == self.uid:
|
||||||
|
Reference in New Issue
Block a user