Skip to content

Commit 49e50f4

Browse files
committed
release 3.17.0
1 parent 64de427 commit 49e50f4

File tree

3 files changed

+31
-7
lines changed

3 files changed

+31
-7
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.19.6`
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.19.6",
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
/>

0 commit comments

Comments
 (0)