Skip to content

Commit c183622

Browse files
authored
release 3.17.0 (#1362)
1 parent 64de427 commit c183622

File tree

4 files changed

+36
-12
lines changed

4 files changed

+36
-12
lines changed

CHANGELOG.md

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

3+
## [v3.17.0] (July 31 2025)
4+
### Features
5+
- Added `mark as unread` functionality for messages in Group Channel
6+
- Added `enableMarkAsUnread` global option
7+
- How to use?
8+
```tsx
9+
<App
10+
appId={appId}
11+
userId={userId}
12+
uikitOptions={{
13+
groupChannel: {
14+
// Below turns on the mark as unread feature. Default value is false.
15+
enableMarkAsUnread: true,
16+
}
17+
}}
18+
/>
19+
```
20+
21+
### Fixes
22+
- Fixed a bug Where Multiple Chat Windows cause unexpected behavior
23+
24+
### Chore
25+
- Updated `@sendbird/chat` version to `^4.18.0`
26+
- Updated `@sendbird/uikit-tools` dependency version to `^0.0.10`
27+
- Updated `@sendbird/react-uikit-message-template-view` dependency version to `^0.0.10`
28+
329
## [v3.16.12] (July 22 2025)
430
### Fixes:
531
- Fixed a bug that caused a runtime exception when leaving or deleting a channel

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sendbird/uikit-react",
3-
"version": "3.16.12",
3+
"version": "3.17.0",
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",
@@ -70,7 +70,7 @@
7070
"react-dom": "^16.8.6 || ^17.0.0 || ^18.0.0 || ^19.0.0"
7171
},
7272
"dependencies": {
73-
"@sendbird/chat": "^4.19.2",
73+
"@sendbird/chat": "^4.18.0",
7474
"@sendbird/react-uikit-message-template-view": "^0.0.10",
7575
"@sendbird/uikit-tools": "^0.0.10",
7676
"css-vars-ponyfill": "^2.3.2",

src/modules/GroupChannel/components/MessageList/index.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,11 @@ export const MessageList = (props: GroupChannelMessageListProps) => {
110110

111111
// Find the first unread message
112112
const firstUnreadMessage = useMemo(() => {
113-
if (!enableMarkAsUnread || !isInitializedRef.current || messages.length === 0) {
113+
if (!enableMarkAsUnread || !isInitializedRef.current || messages.length === 0 || readState === 'read') {
114114
return undefined;
115115
}
116116

117-
if (readState === 'read') {
118-
separatorMessageRef.current = undefined;
119-
isUnreadMessageExistInChannel.current = false;
120-
} else if (readState === 'unread') {
117+
if (readState === 'unread') {
121118
separatorMessageRef.current = undefined;
122119
isUnreadMessageExistInChannel.current = true;
123120
}
@@ -224,6 +221,7 @@ export const MessageList = (props: GroupChannelMessageListProps) => {
224221
if (newMessages.length > 0) {
225222
resetNewMessages();
226223
}
224+
isUnreadMessageExistInChannel.current = false;
227225
markAsReadAll(currentChannel);
228226
}}
229227
/>

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2747,9 +2747,9 @@ __metadata:
27472747
languageName: node
27482748
linkType: hard
27492749

2750-
"@sendbird/chat@npm:^4.19.2":
2751-
version: 4.19.4
2752-
resolution: "@sendbird/chat@npm:4.19.4"
2750+
"@sendbird/chat@npm:^4.18.0":
2751+
version: 4.19.5
2752+
resolution: "@sendbird/chat@npm:4.19.5"
27532753
peerDependencies:
27542754
"@react-native-async-storage/async-storage": ^1.17.6
27552755
react-native-mmkv: ">=2.0.0"
@@ -2758,7 +2758,7 @@ __metadata:
27582758
optional: true
27592759
react-native-mmkv:
27602760
optional: true
2761-
checksum: 3b7c5aa799e1f6794a4c035699a578e346dc437b42368152032f212a1568b8784356953bc2e73e77b990abdc33e27b6e9eb57114f36b2a0164dc0914558d3657
2761+
checksum: b67d3b9413ae1b61c4261ef540f7b31b21fec925950a2805ac2cb0eac2c981ec001f8d066bce8fc294d6a104a4ad2a0481c1e907e59fa9bcc8a0081411b729c6
27622762
languageName: node
27632763
linkType: hard
27642764

@@ -2803,7 +2803,7 @@ __metadata:
28032803
"@rollup/plugin-node-resolve": ^15.2.3
28042804
"@rollup/plugin-replace": ^5.0.4
28052805
"@rollup/plugin-typescript": ^11.1.5
2806-
"@sendbird/chat": ^4.19.2
2806+
"@sendbird/chat": ^4.18.0
28072807
"@sendbird/react-uikit-message-template-view": ^0.0.10
28082808
"@sendbird/uikit-tools": ^0.0.10
28092809
"@storybook/addon-essentials": ^8.5.0

0 commit comments

Comments
 (0)