mirror of
https://github.com/JJTech0130/pypush.git
synced 2025-01-22 11:18:29 +00:00
fix assuming msg uuids
This commit is contained in:
parent
a4dbc56d8d
commit
c87d188c95
@ -101,8 +101,8 @@ class iMessage:
|
||||
xml=message.get("x"),
|
||||
participants=message.get("p", []),
|
||||
sender=message.get("p", [])[-1] if message.get("p", []) != [] else None,
|
||||
_id=uuid.UUID(message.get("r")),
|
||||
group_id=uuid.UUID(message.get("gid")),
|
||||
_id=uuid.UUID(message.get("r")) if "r" in message else None,
|
||||
group_id=uuid.UUID(message.get("gid")) if "gid" in message else None,
|
||||
body=BalloonBody(message["bid"], message["b"])
|
||||
if "bid" in message
|
||||
else None,
|
||||
|
Loading…
Reference in New Issue
Block a user