Skip to content

Commit b258e09

Browse files
committed
chore: adjust scrolling behavior and update reply type options in GroupChannelMessageList and uikitLocalConfigs
1 parent b89c18d commit b258e09

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/uikit-react-native/src/domain/groupChannel/component/GroupChannelMessageList.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,9 @@ const GroupChannelMessageList = (props: GroupChannelProps['MessageList']) => {
298298
const foundUnreadFirstMessage = findUnreadFirstMessage(true);
299299
processNewLineVisibility(foundUnreadFirstMessage);
300300
setUnreadFirstMessage(foundUnreadFirstMessage);
301+
if (!props.scrolledAwayFromBottom) {
302+
scrollToBottom(true);
303+
}
301304
break;
302305
}
303306
}

sample/src/context/uikitLocalConfigs.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { uikitLocalConfigStorage } from '../factory/mmkv';
55
const KEY = 'uikitOptions';
66
const defaultOptions = {
77
rtl: false,
8-
replyType: 'thread' as 'none' | 'thread' | 'quote_reply',
9-
threadReplySelectType: 'thread' as 'thread' | 'parent',
8+
replyType: 'quote_reply' as 'none' | 'thread' | 'quote_reply',
9+
threadReplySelectType: 'parent' as 'thread' | 'parent',
1010
};
1111

1212
type ContextValue = typeof defaultOptions;

0 commit comments

Comments
 (0)