From cefeddab8e326dd6a6b8ba4c0d9d0ec340ad60b8 Mon Sep 17 00:00:00 2001 From: bahtya Date: Tue, 7 Apr 2026 11:24:29 +0800 Subject: [PATCH] fix(matrix): correct e2eeEnabled camelCase alias mapping The pydantic to_camel function generates 'e2EeEnabled' (treating 'ee' as a word boundary) for the field 'e2ee_enabled'. Users writing 'e2eeEnabled' in their config get the default value instead. Fix: add explicit alias='e2eeEnabled' to override the incorrect auto-generated alias. Both 'e2eeEnabled' and 'e2ee_enabled' now work. Fixes #2851 --- nanobot/channels/matrix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nanobot/channels/matrix.py b/nanobot/channels/matrix.py index 716a7f81a..a1435fcf3 100644 --- a/nanobot/channels/matrix.py +++ b/nanobot/channels/matrix.py @@ -209,7 +209,7 @@ class MatrixConfig(Base): password: str = "" access_token: str = "" device_id: str = "" - e2ee_enabled: bool = True + e2ee_enabled: bool = Field(default=True, alias="e2eeEnabled") sync_stop_grace_seconds: int = 2 max_media_bytes: int = 20 * 1024 * 1024 allow_from: list[str] = Field(default_factory=list)