tools (common/data_objects): add attachments in Message

This commit is contained in:
Goffi 2023-06-22 15:47:17 +02:00
commit fd53fb537e

View file

@ -104,6 +104,11 @@ class Message(object):
except KeyError:
return safe(next(iter(self._html.values())))
@property
def attachments(self):
return self._extra.get("attachments", [])
class Messages(object):
def __init__(self, msgs_data):