Ignore messages with "None" for the content

This commit is contained in:
Erik Stambaugh 2025-07-13 10:29:50 -07:00
parent a9c0ad06ec
commit 5da2c725f1

View file

@ -69,6 +69,7 @@ def listen_for_notifications(host="signal-cli", port=7583):
source = envelope["source"]
if "dataMessage" in envelope:
msg = envelope["dataMessage"]["message"] # there are non-message messages, like read receipts
if msg is not None:
if "groupInfo" in envelope["dataMessage"]:
group_id = envelope["dataMessage"]["groupInfo"]["groupId"]
if group_id not in SIGNAL_GROUP_ALLOWLIST: