Fix onFriendRequest

This commit is contained in:
Mads Marquart
2020-01-14 23:27:50 +01:00
parent 881aa9adce
commit 45303005b8

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":