Skip to content

Commit b1f0772

Browse files
committed
chore: update imports and remove unused group channel handler for unread messages
1 parent db4a6f4 commit b1f0772

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

packages/uikit-react-native/src/domain/groupChannel/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { FlatList } from 'react-native';
33

44
import type { MessageCollectionParams, MessageFilterParams } from '@sendbird/chat/groupChannel';
55
import type { UseGroupChannelMessagesOptions } from '@sendbird/uikit-chat-hooks';
6-
import {
6+
import type {
77
OnBeforeHandler,
88
PickPartial,
99
SendbirdFileMessage,

packages/uikit-react-native/src/fragments/createGroupChannelFragment.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
} from '@sendbird/chat/groupChannel';
99
import { ReplyType } from '@sendbird/chat/message';
1010
import { Box, useToast } from '@sendbird/uikit-react-native-foundation';
11-
import { useGroupChannelHandler, useGroupChannelMessages } from '@sendbird/uikit-tools';
11+
import { useGroupChannelMessages } from '@sendbird/uikit-tools';
1212
import {
1313
SendbirdFileMessage,
1414
SendbirdGroupChannel,
@@ -129,14 +129,6 @@ const createGroupChannelFragment = (initModule?: Partial<GroupChannelModule>): G
129129
}
130130
});
131131

132-
useGroupChannelHandler(sdk, {
133-
onUserMarkedUnread: (_, userIds) => {
134-
if (userIds.includes(currentUser?.userId ?? '')) {
135-
groupChannelPubSub.publish({ type: 'ON_MARKED_AS_UNREAD_BY_CURRENT_USER' });
136-
}
137-
},
138-
});
139-
140132
const {
141133
loading,
142134
messages,

0 commit comments

Comments
 (0)