fix assuming msg uuids

This commit is contained in:
JJTech0130 2023-07-31 13:59:46 -04:00
parent a4dbc56d8d
commit c87d188c95
No known key found for this signature in database
GPG key ID: 23C92EBCCF8F93D6

View file

@ -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,