Skip to content

feat: Add optional from in chat#270

Merged
kevinszuchet merged 5 commits into
experimentalfrom
feat/add-optional-from-in-chat
Jun 10, 2025
Merged

feat: Add optional from in chat#270
kevinszuchet merged 5 commits into
experimentalfrom
feat/add-optional-from-in-chat

Conversation

@kevinszuchet

@kevinszuchet kevinszuchet commented Jun 4, 2025

Copy link
Copy Markdown
Contributor

This PR introduces a new optional from field in the Chat message defined in our protobuf protocol.

🎯 Purpose

As part of the Communities chat implementation, we’re introducing an intermediate actor — the Comms Message SFU — responsible for receiving messages from the client, validating the sender, resolving the list of community members, and then forwarding the message to the correct recipients.

Because the message is re-broadcasted by the SFU (instead of the original sender), the receiving clients would otherwise see the SFU as the sender. To preserve the identity of the original author, we’re adding the from field, allowing clients to properly render the original sender in the chat UI.

🧱 Changes

  • Add optional from field to the Chat protobuf message

This change is backward-compatible, as the new field is optional and won’t affect existing message flows outside the Communities context.

@kevinszuchet
kevinszuchet changed the base branch from main to experimental June 4, 2025 11:19
@github-actions

github-actions Bot commented Jun 4, 2025

Copy link
Copy Markdown

Test this pull request

  • The @dcl/protocol package can be tested in scenes by running
    npm install "https://sdk-team-cdn.decentraland.org/@dcl/protocol/branch//dcl-protocol-1.0.0-15559317682.commit-388b8de.tgz"

@kevinszuchet
kevinszuchet requested a review from QThund June 4, 2025 11:25
Comment thread proto/decentraland/kernel/comms/rfc4/comms.proto Outdated

@aleortega aleortega left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kevinszuchet
kevinszuchet merged commit 321145f into experimental Jun 10, 2025
2 of 3 checks passed
@kevinszuchet
kevinszuchet deleted the feat/add-optional-from-in-chat branch June 10, 2025 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants