feat: support shared-workspace file flow for matrix
This commit is contained in:
parent
323a6d3144
commit
6422c7db58
18 changed files with 871 additions and 80 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue