fix(ChannelPreview): call getLatestMessagePreview on every relevant WS event#2838
Merged
MartinCupela merged 1 commit intomasterfrom Sep 29, 2025
Merged
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
|
oliverlaz
approved these changes
Sep 29, 2025
github-actions Bot
pushed a commit
that referenced
this pull request
Sep 29, 2025
## [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))
github-actions Bot
pushed a commit
that referenced
this pull request
Oct 8, 2025
## [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 π¦π |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
π― 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