# HG changeset patch # User Goffi # Date 1687441637 -7200 # Node ID 11e802089b19c34ec5a370b9c11e3d244c66af8d # Parent 4a8b29ab34c0572a32cd166b8bbf8623e4156b37 tools (common/data_objects): add `attachments` in Message diff -r 4a8b29ab34c0 -r 11e802089b19 libervia/backend/tools/common/data_objects.py --- a/libervia/backend/tools/common/data_objects.py Thu Jun 22 15:46:42 2023 +0200 +++ b/libervia/backend/tools/common/data_objects.py Thu Jun 22 15:47:17 2023 +0200 @@ -104,6 +104,11 @@ 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):