Skip to content

Conversation

@danney-chun
Copy link
Contributor

@danney-chun danney-chun commented Sep 22, 2025

[fix]: Fix a bug where reactions are not updated in ThreadList

Fixes CLNP-7553

Changelogs

  • Fix a bug where reactions are not updated in ThreadList

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If unsure, ask the members.
This is a reminder of what we look for before merging your code.

  • All tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • Public components / utils / props are appropriately exported
  • I have added necessary documentation (if appropriate)

@netlify
Copy link

netlify bot commented Sep 22, 2025

Deploy Preview for sendbird-uikit-react ready!

Name Link
🔨 Latest commit 5e4c848
🔍 Latest deploy log https://app.netlify.com/projects/sendbird-uikit-react/deploys/68d14619f302d30008d37cca
😎 Deploy Preview https://deploy-preview-1367--sendbird-uikit-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a bug where reactions were not being updated in the ThreadList component. The issue was caused by the reaction update handler not properly checking if the reaction event belonged to the current channel before processing it.

  • Added channel URL comparison to ensure reaction updates only apply to the current channel
  • Modified the useMemo dependency to trigger re-renders when reactions change
  • Added testing configuration to enable thread reply functionality

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/modules/Thread/context/useThread.ts Modified useMemo to trigger re-renders on reaction updates
src/modules/Thread/context/hooks/useHandleChannelEvents.ts Added channel URL validation for reaction update events
apps/testing/src/pages/PlaygroundPage.tsx Configured testing app to use thread reply mode
.github/workflows/package-publish.yml Added npm package publication verification step

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@danney-chun
Copy link
Contributor Author

Apply to #1369

@danney-chun danney-chun closed this Oct 1, 2025
@danney-chun danney-chun removed the 3.17.3 label Oct 2, 2025
@bang9 bang9 deleted the origin/bug-fix/CLNP-7553 branch November 7, 2025 04:22
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.

2 participants