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