Commit 096de30
authored
fix: recognize async moderated shadow blocked messages as blocked (#3132)
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_
### 🎯 Goal
_Describe why we are making this change_
### 🛠 Implementation details
_Provide a description of the implementation_
### 🎨 UI Changes
_Add relevant screenshots_1 parent 01d92a3 commit 096de30
5 files changed
Lines changed: 63 additions & 45 deletions
File tree
- src/components
- MessageInput/__tests__
- Message
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
| 237 | + | |
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
497 | 497 | | |
498 | 498 | | |
499 | 499 | | |
500 | | - | |
| 500 | + | |
501 | 501 | | |
502 | | - | |
503 | | - | |
504 | | - | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
505 | 506 | | |
506 | 507 | | |
507 | 508 | | |
Lines changed: 26 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
94 | 115 | | |
95 | 116 | | |
96 | 117 | | |
| |||
440 | 461 | | |
441 | 462 | | |
442 | 463 | | |
443 | | - | |
444 | | - | |
| 464 | + | |
| 465 | + | |
445 | 466 | | |
446 | 467 | | |
447 | 468 | | |
| |||
512 | 533 | | |
513 | 534 | | |
514 | 535 | | |
515 | | - | |
| 536 | + | |
516 | 537 | | |
517 | 538 | | |
518 | 539 | | |
| |||
579 | 600 | | |
580 | 601 | | |
581 | 602 | | |
582 | | - | |
| 603 | + | |
583 | 604 | | |
584 | 605 | | |
585 | 606 | | |
| |||
590 | 611 | | |
591 | 612 | | |
592 | 613 | | |
593 | | - | |
| 614 | + | |
594 | 615 | | |
595 | 616 | | |
596 | 617 | | |
| |||
Lines changed: 24 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
82 | 103 | | |
83 | 104 | | |
84 | 105 | | |
| |||
411 | 432 | | |
412 | 433 | | |
413 | 434 | | |
414 | | - | |
415 | | - | |
| 435 | + | |
| 436 | + | |
416 | 437 | | |
417 | 438 | | |
418 | 439 | | |
| |||
483 | 504 | | |
484 | 505 | | |
485 | 506 | | |
486 | | - | |
| 507 | + | |
487 | 508 | | |
488 | 509 | | |
489 | 510 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11936 | 11936 | | |
11937 | 11937 | | |
11938 | 11938 | | |
11939 | | - | |
11940 | | - | |
11941 | | - | |
11942 | | - | |
| 11939 | + | |
| 11940 | + | |
| 11941 | + | |
| 11942 | + | |
11943 | 11943 | | |
11944 | 11944 | | |
11945 | 11945 | | |
| |||
11984 | 11984 | | |
11985 | 11985 | | |
11986 | 11986 | | |
11987 | | - | |
11988 | | - | |
11989 | | - | |
11990 | | - | |
11991 | | - | |
11992 | | - | |
11993 | | - | |
11994 | | - | |
11995 | | - | |
11996 | | - | |
| 11987 | + | |
11997 | 11988 | | |
11998 | 11989 | | |
11999 | 11990 | | |
| |||
12118 | 12109 | | |
12119 | 12110 | | |
12120 | 12111 | | |
12121 | | - | |
| 12112 | + | |
12122 | 12113 | | |
12123 | 12114 | | |
12124 | 12115 | | |
| |||
12132 | 12123 | | |
12133 | 12124 | | |
12134 | 12125 | | |
12135 | | - | |
12136 | | - | |
12137 | | - | |
12138 | | - | |
12139 | | - | |
12140 | | - | |
12141 | | - | |
12142 | 12126 | | |
12143 | 12127 | | |
12144 | 12128 | | |
| |||
13227 | 13211 | | |
13228 | 13212 | | |
13229 | 13213 | | |
13230 | | - | |
| 13214 | + | |
13231 | 13215 | | |
13232 | 13216 | | |
13233 | 13217 | | |
| |||
13245 | 13229 | | |
13246 | 13230 | | |
13247 | 13231 | | |
13248 | | - | |
13249 | | - | |
13250 | | - | |
13251 | | - | |
13252 | | - | |
13253 | | - | |
13254 | | - | |
13255 | | - | |
13256 | | - | |
13257 | 13232 | | |
13258 | 13233 | | |
13259 | 13234 | | |
| |||
0 commit comments