Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,59 @@
# Changelog - v3

## [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`

## [v3.8.0] (Nov 3 2023)

### Feat:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sendbird/uikit-react",
"version": "3.8.0",
"version": "3.8.1",
"description": "Sendbird UIKit for React: A feature-rich and customizable chat UI kit with messaging, channel management, and user authentication.",
"keywords": [
"sendbird",
Expand Down