Skip to content

Conversation

@bang9
Copy link
Contributor

@bang9 bang9 commented May 3, 2024

  • Fix scroll bottom not working properly when last message is updated with suggested replies

ticket: AC-2222

@bang9 bang9 self-assigned this May 3, 2024
@netlify
Copy link

netlify bot commented May 3, 2024

Deploy Preview for sendbird-uikit-react ready!

Name Link
🔨 Latest commit 5269698
🔍 Latest deploy log https://app.netlify.com/sites/sendbird-uikit-react/deploys/6635a35a7ad1770008fe1448
😎 Deploy Preview https://deploy-preview-1087--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 site configuration.

@bang9 bang9 requested a review from chohongm May 3, 2024 09:42

const renderedCustomSeparator = useMemo(() => renderCustomSeparator?.({ message }) ?? null, [message, renderCustomSeparator]);

const prevShouldRenderSuggestedReplies = useRef(shouldRenderSuggestedReplies);
Copy link
Contributor

@chohongm chohongm May 4, 2024

Choose a reason for hiding this comment

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

Nice!! I could not think of this: useRef can recognize height changes of a component.

edit: oh its not a component but a state. Surprised this solution has no timing issue. But its nice that it works!!

Copy link
Contributor

@chohongm chohongm left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you very much @bang9 for fixing this late Friday 🙏 🙇

@bang9 bang9 force-pushed the fix/suggested-replies-medi-scroll branch from 772436e to 3799c6e Compare May 4, 2024 02:53
@bang9 bang9 force-pushed the fix/suggested-replies-medi-scroll branch from 3799c6e to 5269698 Compare May 4, 2024 02:54
@bang9 bang9 merged commit b5f91d5 into main May 4, 2024
@HoonBaek HoonBaek deleted the fix/suggested-replies-medi-scroll branch May 21, 2024 06:20
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