Skip to content

fix: persist participant session secret after password verification#35

Merged
BackGwa merged 1 commit intodevelopfrom
bugs/interpret-private-chat
Feb 24, 2026
Merged

fix: persist participant session secret after password verification#35
BackGwa merged 1 commit intodevelopfrom
bugs/interpret-private-chat

Conversation

@BackGwa
Copy link
Owner

@BackGwa BackGwa commented Feb 24, 2026

Description

This bug fix ensures that participants in a private room can correctly decrypt and read the host’s chat messages after password verification.
Previously, the participant-side session secret was not persisted after verification, which caused encrypted chat payloads to be uninterpretable.
By saving the verified participant password into the session secret state, the participant flow now keeps the required encryption context for chat decryption.

Type of Change

  • Bug fix (bugs/)
  • New feature (features/)
  • Refactoring (refactor/)
  • Hotfix (hotfix/)
  • Chore (chore/)

Related Issues

Peers cannot interpret the host’s chat in a private room. #30

Changes Made

  • Persisted the participant session secret immediately after successful password verification.
  • Added setSessionSecret(participantPassword.trim() || null) in the private-room connection flow.
  • Ensured participant chat encryption/decryption context is available when moving forward to ParticipantPage.

Checklist

  • Code follows the project's coding style
  • Self-review completed

@BackGwa BackGwa added the bug Something isn't working label Feb 24, 2026
@BackGwa BackGwa merged commit 00cb07e into develop Feb 24, 2026
4 checks passed
@BackGwa BackGwa deleted the bugs/interpret-private-chat branch February 24, 2026 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant