mirror of
https://github.com/Sneed-Group/pypush-plus-plus
synced 2024-12-23 19:32:29 -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"),
|
xml=message.get("x"),
|
||||||
participants=message.get("p", []),
|
participants=message.get("p", []),
|
||||||
sender=message.get("p", [])[-1] if message.get("p", []) != [] else None,
|
sender=message.get("p", [])[-1] if message.get("p", []) != [] else None,
|
||||||
_id=uuid.UUID(message.get("r")),
|
_id=uuid.UUID(message.get("r")) if "r" in message else None,
|
||||||
group_id=uuid.UUID(message.get("gid")),
|
group_id=uuid.UUID(message.get("gid")) if "gid" in message else None,
|
||||||
body=BalloonBody(message["bid"], message["b"])
|
body=BalloonBody(message["bid"], message["b"])
|
||||||
if "bid" in message
|
if "bid" in message
|
||||||
else None,
|
else None,
|
||||||
|
|
Loading…
Reference in a new issue