Skip to content

fix: recognize async moderated shadow blocked messages as blocked#3131

Merged
szuperaz merged 2 commits intomasterfrom
shadow-block-with-async-image-mod
Apr 17, 2026
Merged

fix: recognize async moderated shadow blocked messages as blocked#3131
szuperaz merged 2 commits intomasterfrom
shadow-block-with-async-image-mod

Conversation

@szuperaz
Copy link
Copy Markdown
Contributor

@szuperaz szuperaz commented Apr 17, 2026

🎯 Goal

https://linear.app/stream/issue/REACT-945/handle-shadow-blocked-images-in-react-chat-sdk

isMessageBlocked method decides if we should display the MessageBlocked placeholder for a message. This method didn't categorize shadowed messages as blocked (probably because these messages are not displayed in message list, except when they change from shadowed: false to shadowed: true)

πŸ›  Implementation details

Provide a description of the implementation

🎨 UI Changes

Add relevant screenshots

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 17, 2026

Size Change: +13 B (0%)

Total Size: 624 kB

πŸ“¦ View Changed
Filename Size Change
dist/cjs/emojis.js 3.01 kB +1 B (+0.03%)
dist/cjs/index.js 240 kB +2 B (0%)
dist/cjs/WithAudioPlayback.js 44.7 kB +7 B (+0.02%)
dist/es/emojis.mjs 2.52 kB -3 B (-0.12%)
dist/es/index.mjs 239 kB -1 B (0%)
dist/es/WithAudioPlayback.mjs 44.5 kB +7 B (+0.02%)
ℹ️ View Unchanged
Filename Size
dist/cjs/audioProcessing.js 1.32 kB
dist/cjs/mp3-encoder.js 1.27 kB
dist/css/emoji-picker.css 188 B
dist/css/emoji-replacement.css 456 B
dist/css/index.css 45 kB
dist/es/audioProcessing.mjs 1.31 kB
dist/es/mp3-encoder.mjs 756 B

compressed-size-action

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 17, 2026

Codecov Report

βœ… All modified and coverable lines are covered by tests.
βœ… Project coverage is 82.22%. Comparing base (d0cbaad) to head (c952c00).
⚠️ Report is 16 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3131   +/-   ##
=======================================
  Coverage   82.22%   82.22%           
=======================================
  Files         418      418           
  Lines       12114    12115    +1     
  Branches     3903     3904    +1     
=======================================
+ Hits         9961     9962    +1     
  Misses       2153     2153           

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

πŸš€ New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • πŸ“¦ JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@szuperaz szuperaz merged commit eac76dc into master Apr 17, 2026
8 checks passed
@szuperaz szuperaz deleted the shadow-block-with-async-image-mod branch April 17, 2026 13:17
szuperaz added a commit that referenced this pull request Apr 17, 2026
)

https://linear.app/stream/issue/REACT-945/handle-shadow-blocked-images-in-react-chat-sdk

`isMessageBlocked` method decides if we should display the
`MessageBlocked` placeholder for a message. This method didn't
categorize `shadowed` messages as blocked (probably because these
messages are not displayed in message list, except when they change from
`shadowed: false` to `shadowed: true`)

_Provide a description of the implementation_

_Add relevant screenshots_
github-actions bot pushed a commit that referenced this pull request Apr 17, 2026
## [14.0.1](v14.0.0...v14.0.1) (2026-04-17)

### Bug Fixes

* allow flipping message actions context menu ([#3130](#3130)) ([f8c9600](f8c9600))
* drop unused/outdated CSS variables ([#3128](#3128)) ([1a2a61f](1a2a61f))
* recognize async moderated shadow blocked messages as blocked ([#3131](#3131)) ([eac76dc](eac76dc))
@stream-ci-bot
Copy link
Copy Markdown

πŸŽ‰ This PR is included in version 14.0.1 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants