|
1 | 1 | # Changelog - v3 |
2 | 2 |
|
| 3 | +## [v3.8.1] (Nov 10 2023) |
| 4 | + |
| 5 | +### Features: |
| 6 | +* MessageContent is not customizable with three new optional properties: |
| 7 | + * renderSenderProfile, renderMessageBody, and renderMessageHeader |
| 8 | + * How to use? |
| 9 | + ```tsx |
| 10 | + import Channel from '@sendbird/uikit-react/Channel' |
| 11 | + import { useSendbirdStateContext } from '@sendbird/uikit-react/useSendbirdStateContext' |
| 12 | + import { useChannelContext } from '@sendbird/uikit-react/Channel/context' |
| 13 | + import MessageContent from '@sendbird/uikit-react/ui/MessageContent' |
| 14 | + |
| 15 | + const CustomChannel = () => { |
| 16 | + const { config } = useSendbirdStateContext(); |
| 17 | + const { userId } = config; |
| 18 | + const { currentGroupChannel } = useChannelContext(); |
| 19 | + return ( |
| 20 | + <Channel |
| 21 | + ... |
| 22 | + renderMessage={({ message }) => { |
| 23 | + return ( |
| 24 | + <MessageContent |
| 25 | + userId={userId} |
| 26 | + channel={currentGroupChannel} |
| 27 | + message={message} |
| 28 | + ... |
| 29 | + renderSenderProfile={(props: MessageProfileProps) => ( |
| 30 | + <MessageProfile {...props}/> |
| 31 | + )} |
| 32 | + renderMessageBody={(props: MessageBodyProps) => ( |
| 33 | + <MessageBody {...props}/> |
| 34 | + )} |
| 35 | + renderMessageHeader={(props: MessageHeaderProps) => ( |
| 36 | + <MessageHeader {...props}/> |
| 37 | + )} |
| 38 | + /> |
| 39 | + ) |
| 40 | + }} |
| 41 | + /> |
| 42 | + ) |
| 43 | + } |
| 44 | + ``` |
| 45 | + |
| 46 | +### Fixes: |
| 47 | +* Fix runtime error due to publishing modules |
| 48 | +* Add missing date locale to the UnreadCount banner since string |
| 49 | +* Use the more impactful value between the resizingWidth and resizingHeight |
| 50 | + * So, the original images' ratio won't be broken |
| 51 | +* Apply the ImageCompression to the Thread module |
| 52 | +* Apply the ImageCompression for sending file message and multiple files message |
| 53 | + |
| 54 | +### Improvements: |
| 55 | +* Use `channel.members` instead of fetching for non-super group channels in the SuggestedMentionList |
| 56 | + |
3 | 57 | ## [v3.8.0] (Nov 3 2023) |
4 | 58 |
|
5 | 59 | ### Feat: |
|
0 commit comments