You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR adds a `MessageBlocked` component to render instead of a normal
message UI whenever sync/async moderation blocks an inappropriate
message.
Ref: GetStream/stream-chat-js#1510
Ref: GetStream/stream-chat-css#327
Also awaits BE changes to the `message.updated` message object's
payload.
Copy file name to clipboardExpand all lines: src/context/ComponentContext.tsx
+2
Original file line number
Diff line number
Diff line change
@@ -132,6 +132,8 @@ export type ComponentContextValue<
132
132
MessageActions?: React.ComponentType;
133
133
/** Custom UI component to display the contents of a bounced message modal. Usually it allows to retry, edit, or delete the message. Defaults to and accepts the same props as: [MessageBouncePrompt](https://github.com/GetStream/stream-chat-react/blob/master/src/components/MessageBounce/MessageBouncePrompt.tsx) */
/** Custom UI component for a moderation-blocked message, defaults to and accepts same props as: [MessageBlocked](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Message/MessageBlocked.tsx) */
136
+
MessageBlocked?: React.ComponentType;
135
137
/** Custom UI component for a deleted message, defaults to and accepts same props as: [MessageDeleted](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Message/MessageDeleted.tsx) */
0 commit comments