feat(matrix): make e2ee configurable with enabled default

This commit is contained in:
Alexander Minges
2026-02-10 17:50:27 +01:00
parent 085a311d4b
commit 566ad1dfc7
3 changed files with 82 additions and 16 deletions

View File

@@ -72,6 +72,8 @@ class MatrixConfig(Base):
access_token: str = ""
user_id: str = "" # @bot:matrix.org
device_id: str = ""
# Enable Matrix E2EE support (encryption + encrypted room handling).
e2ee_enabled: bool = True
# 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.