feat(matrix): support inbound media attachments

This commit is contained in:
Alexander Minges
2026-02-10 17:09:06 +01:00
parent 7b2adf9d9d
commit a482a89df6
3 changed files with 556 additions and 26 deletions

View File

@@ -74,6 +74,8 @@ class MatrixConfig(Base):
device_id: str = ""
# Max seconds to wait for sync_forever to stop gracefully before cancellation fallback.
sync_stop_grace_seconds: int = 2
# Max attachment size accepted from inbound Matrix media events.
max_inbound_media_bytes: int = 20 * 1024 * 1024
allow_from: list[str] = Field(default_factory=list)
group_policy: Literal["open", "mention", "allowlist"] = "open"
group_allow_from: list[str] = Field(default_factory=list)