mirror of
https://github.com/Sneed-Group/pypush-plus-plus
synced 2024-12-23 11:22:42 -06:00
fix assuming msg uuids
This commit is contained in:
parent
a4dbc56d8d
commit
c87d188c95
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue