Room creation fails with "Encryption is already enabled!" on servers that encrypt by default #29

Open
opened 2026-10-05 19:03:37 +00:00 by robocub · 0 comments
Owner

Upstream: commetchat/commet#864

On servers configured to encrypt new private rooms by default (e.g. encryption_enabled_by_default_for_room_type: invite), creating an encrypted room errors with Encryption is already enabled!: the client tries to enable encryption on a room that already has it. Fix: treat already-encrypted as success, or put m.room.encryption in initial_state and skip the follow-up call.


Imported from Commet's tracker during the 2026-10-05 triage. As of that date it was open upstream with no assignee and no open PR. Nothing gets posted back to their tracker. If upstream fixes it first, close this issue and drop our patch on the next rebase (record the change in VOMMET_CHANGES.md).

Upstream: [commetchat/commet#864](https://github.com/commetchat/commet/issues/864) On servers configured to encrypt new private rooms by default (e.g. `encryption_enabled_by_default_for_room_type: invite`), creating an encrypted room errors with *Encryption is already enabled!*: the client tries to enable encryption on a room that already has it. Fix: treat already-encrypted as success, or put `m.room.encryption` in `initial_state` and skip the follow-up call. --- *Imported from Commet's tracker during the 2026-10-05 triage. As of that date it was open upstream with no assignee and no open PR. Nothing gets posted back to their tracker. If upstream fixes it first, close this issue and drop our patch on the next rebase (record the change in VOMMET_CHANGES.md).*
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
robocub/vommet#29
No description provided.