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
Copy file name to clipboardexpand all lines: docusaurus/docs/React/components/utility-components/channel-preview-ui.mdx
+11-3
Original file line number
Diff line number
Diff line change
@@ -18,12 +18,12 @@ For even deeper customization of the channel list and channel previews, use the
18
18
To customize the `ChannelList` item UI simply pass your custom `Preview` component to the `ChannelList`. See [The Preview Prop Component](../../guides/customization/channel-list-preview.mdx#the-preview-prop-component) for the extended guide.
Copy file name to clipboardexpand all lines: src/components/ChannelPreview/ChannelPreview.tsx
+13-7
Original file line number
Diff line number
Diff line change
@@ -29,8 +29,10 @@ export type ChannelPreviewUIComponentProps<
29
29
displayTitle?: string;
30
30
/** The last message received in a channel */
31
31
lastMessage?: StreamMessage<StreamChatGenerics>;
32
-
/** Latest message preview to display, will be a string or JSX element supporting markdown. */
32
+
/** @deprecated Use latestMessagePreview prop instead. */
33
33
latestMessage?: string|JSX.Element;
34
+
/** Latest message preview to display, will be a string or JSX element supporting markdown. */
35
+
latestMessagePreview?: string|JSX.Element;
34
36
/** Status describing whether own message has been delivered or read by another. If the last message is not an own message, then the status is undefined. */
0 commit comments