feat: support shared-workspace file flow for matrix

This commit is contained in:
Mikhail Putilovskij 2026-04-21 00:26:21 +03:00
parent 323a6d3144
commit 6422c7db58
18 changed files with 871 additions and 80 deletions

View file

@ -14,7 +14,8 @@ PLATFORM = "matrix"
def extract_attachments(event: Any) -> list[Attachment]:
content = getattr(event, "content", {}) or {}
source = getattr(event, "source", {}) or {}
content = source.get("content", {}) or getattr(event, "content", {}) or {}
msgtype = getattr(event, "msgtype", None)
if msgtype is None:
msgtype = content.get("msgtype")