Fixed groupInfo keyerror

This commit is contained in:
Malasaur 2025-08-28 20:45:26 +02:00
parent ceccdf818b
commit 15e8802da0

View file

@ -49,9 +49,10 @@ def main():
if envelope:
dataMessage = envelope.get("dataMessage", None)
if dataMessage:
groupId = dataMessage.get("groupInfo", None)
if groupId:
name = envelope["sourceName"]
body = dataMessage["message"]
groupId = dataMessage["groupInfo"]["groupId"]
if body is not None:
for group, func in libcommon.signalMessageBinds:
if group is None or group.id == groupId: