Skip to content

Commit efeadbf

Browse files
committed
chore: fix replyType type definition on SendbirdUIKitContainer
1 parent 4a06e00 commit efeadbf

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/uikit-chat-hooks/src/channel/useGroupChannelMessages/useGroupChannelMessagesWithCollection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export const useGroupChannelMessagesWithCollection: UseGroupChannelMessages = (s
196196
updateLoading(true);
197197
init(initialStartingPoint, initialLimit, () => updateLoading(false));
198198
}, 0);
199-
}, [channel.url, userId]);
199+
}, [channel.url, userId, options?.replyType]);
200200

201201
useEffect(() => {
202202
return () => {

packages/uikit-react-native/src/containers/SendbirdUIKitContainer.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ export type SendbirdUIKitContainerProps = React.PropsWithChildren<{
7676
} & Partial<ChatRelatedFeaturesInUIKit>;
7777
uikitOptions?: PartialDeep<{
7878
common: SBUConfig['common'];
79-
groupChannel: Omit<SBUConfig['groupChannel']['channel'], UnimplementedFeatures>;
79+
groupChannel: Omit<SBUConfig['groupChannel']['channel'], UnimplementedFeatures> & {
80+
replyType: Extract<SBUConfig['groupChannel']['channel']['replyType'], 'none' | 'quote_reply'>;
81+
};
8082
groupChannelList: SBUConfig['groupChannel']['channelList'];
8183
groupChannelSettings: SBUConfig['groupChannel']['setting'];
8284
openChannel: SBUConfig['openChannel']['channel'];

0 commit comments

Comments
 (0)