Skip to content

Commit 51a272d

Browse files
HoonBaekchohongm
andauthored
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

File tree

2 files changed

+55
-1
lines changed

2 files changed

+55
-1
lines changed

CHANGELOG.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,59 @@
11
# Changelog - v3
22

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+
357
## [v3.8.0] (Nov 3 2023)
458

559
### Feat:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sendbird/uikit-react",
3-
"version": "3.8.0",
3+
"version": "3.8.1",
44
"description": "Sendbird UIKit for React: A feature-rich and customizable chat UI kit with messaging, channel management, and user authentication.",
55
"keywords": [
66
"sendbird",

0 commit comments

Comments
 (0)