From 8d98fb91473b524528cfcdccefc03344dffd5d6b Mon Sep 17 00:00:00 2001 From: Era Dorta Date: Sun, 6 Oct 2024 18:41:26 +0200 Subject: [PATCH] Fix unit testing --- signalbot/message.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/signalbot/message.py b/signalbot/message.py index e3719a7..5f30ee2 100644 --- a/signalbot/message.py +++ b/signalbot/message.py @@ -1,5 +1,6 @@ import json from enum import Enum +from typing import Optional from signalbot.api import SignalAPI @@ -91,6 +92,7 @@ async def parse(cls, signal: SignalAPI, raw_message: str): raw_message["envelope"]["syncMessage"]["sentMessage"] ) base64_attachments = None + attachments_filenames = None # Option 2: dataMessage elif "dataMessage" in raw_message["envelope"]: