-
Notifications
You must be signed in to change notification settings - Fork 290
fix(ChannelPreview): call getLatestMessagePreview on every relevant WS event #2838
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(ChannelPreview): call getLatestMessagePreview on every relevant WS event #2838
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2838 +/- ##
==========================================
+ Coverage 81.45% 81.54% +0.09%
==========================================
Files 492 492
Lines 9974 9977 +3
Branches 2268 2268
==========================================
+ Hits 8124 8136 +12
+ Misses 1738 1729 -9
Partials 112 112 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Size Change: +188 B (+0.02%) Total Size: 1.17 MB
ℹ️ View Unchanged
|
## [12.15.8](v12.15.7...v12.15.8) (2025-09-29) ### Bug Fixes * **ChannelPreview:** call getLatestMessagePreview on every relevant WS event ([#2838](#2838)) ([c8e9542](c8e9542))
## [13.8.0](v13.7.0...v13.8.0) (2025-10-08) ### Bug Fixes * add CustomMessageComposerData redeclaration ([#2833](#2833)) ([641cdd3](641cdd3)) * add notification translator for notification validation:attachment:upload:in-progress ([#2842](#2842)) ([7c2a965](7c2a965)) * **ChannelPreview:** call getLatestMessagePreview on every relevant WS event ([#2838](#2838)) ([386ef55](386ef55)) * check cast-poll-vote permission to show "Suggest an option" poll action ([#2835](#2835)) ([a14367e](a14367e)) * **giphy:** allow using actions in quoted messages ([#2849](#2849)) ([8052bd7](8052bd7)) * **TextareaComposer:** check sendable data before allowing message submission ([#2852](#2852)) ([4300ed6](4300ed6)) * **useMessageComposer:** keep editing message composer with up-to-date edited message reference ([#2851](#2851)) ([d4eb2d7](d4eb2d7)) ### Features * allow to override EditMessageModal and thus its additionalMessageInputProps ([#2853](#2853)) ([50e3c62](50e3c62)) ### Chores * **deps:** upgrade stream-chat to v9.20.3 ([51ea875](51ea875))
|
🎉 This PR is included in version 13.8.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎯 Goal
The message preview is not regenerated on every event in an edge case, where the last preview should be a non-deleted message and the last message was soft-deleted. That means that the
lastMessageis always the same andChannelPreviewis not re-rendered. Therefore the latest message preview should be generated independently fromlastMessagestate setting.Fixes REACT-585