Skip to content

Commit 69a2cbd

Browse files
authored
refactor: mark deprecated in legacy configs where marks are missing (#1072)
- We agreed with the team to deprecate legacy configs, but since they were not handled, I've deprecated them. ```ts /** @deprecated Please use `common.enableUsingDefaultUserProfile` instead * */ disableUserProfile: boolean; /** @deprecated Please use `groupChannel.enableReactions` instead * */ isReactionEnabled: boolean; /** @deprecated Please use `groupChannel.enableMention` instead * */ isMentionEnabled: boolean; /** @deprecated Please use `groupChannel.enableVoiceMessage` instead * */ isVoiceMessageEnabled?: boolean; /** @deprecated Please use `groupChannel.replyType` instead * */ replyType: ReplyType; /** @deprecated Please use `groupChannelSettings.enableMessageSearch` instead * */ showSearchIcon?: boolean; /** @deprecated Please use `groupChannelList.enableTypingIndicator` instead * */ isTypingIndicatorEnabledOnChannelList?: boolean; /** @deprecated Please use `groupChannelList.enableMessageReceiptStatus` instead * */ isMessageReceiptStatusEnabledOnChannelList?: boolean; /** @deprecated Please use setCurrentTheme instead * */ setCurrenttheme: (theme: 'light' | 'dark') => void; ``` |SendbirdProvider|App| |--|--| |<img width="486" alt="스크린샷 2024-04-22 오전 11 50 01" src="https://github.com/sendbird/sendbird-uikit-react/assets/26326015/4191e76a-602a-47bb-9068-08bfcefee39b">|<img width="489" alt="스크린샷 2024-04-22 오전 11 49 48" src="https://github.com/sendbird/sendbird-uikit-react/assets/26326015/fe02fe65-e501-4d8f-91ed-17aceee2cbd0">| - Below, legacy configs are being transformed as follows: `legacy configs -> uikit mapper -> uikit configs -> config(sdk state)` Thus, there's no need to use legacy configs in the config anymore. I've removed the parts of the code using them.
1 parent 6c7ec19 commit 69a2cbd

File tree

22 files changed

+175
-183
lines changed

22 files changed

+175
-183
lines changed

apps/testing/src/utils/paramsBuilder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export const paramKeys = [
9595
'groupChannel_showSuggestedRepliesFor',
9696
'groupChannelList_enableTypingIndicator',
9797
'groupChannelList_enableMessageReceiptStatus',
98-
'groupChannelSetting_enableMessageSearch',
98+
'groupChannelSettings_enableMessageSearch',
9999
'openChannel_enableOgtag',
100100
'openChannel_input_camera_enablePhoto',
101101
'openChannel_input_camera_enableVideo',

src/hooks/VoiceRecorder/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,13 @@ const Context = createContext<VoiceRecorderContext>({
3636
export const VoiceRecorderProvider = (props: VoiceRecorderProps): React.ReactElement => {
3737
const { children } = props;
3838
const { config } = useSendbirdStateContext();
39-
const { logger, isVoiceMessageEnabled } = config;
39+
const { logger, groupChannel } = config;
4040
const [mediaRecorder, setMediaRecorder] = useState<MediaRecorder>(null);
4141
const [isRecordable, setIsRecordable] = useState<boolean>(false);
4242
const [permissionWarning, setPermissionWarning] = useState<boolean>(false);
4343
const { stringSet } = useLocalization();
4444

45+
const isVoiceMessageEnabled = groupChannel.enableVoiceMessage;
4546
const [webAudioUtils, setWebAudioUtils] = useState(null);
4647

4748
const browserSupportMimeType = BROWSER_SUPPORT_MIME_TYPE_LIST.find((mimeType) => MediaRecorder.isTypeSupported(mimeType)) ?? '';

src/lib/Sendbird.tsx

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import { uikitConfigMapper } from './utils/uikitConfigMapper';
3737
import { useMarkAsReadScheduler } from './hooks/useMarkAsReadScheduler';
3838
import { ConfigureSessionTypes } from './hooks/useConnect/types';
3939
import { useMarkAsDeliveredScheduler } from './hooks/useMarkAsDeliveredScheduler';
40-
import { getCaseResolvedReplyType, getCaseResolvedThreadReplySelectType } from './utils/resolvedReplyType';
40+
import { getCaseResolvedReplyType } from './utils/resolvedReplyType';
4141
import { useUnmount } from '../hooks/useUnmount';
4242
import { disconnectSdk } from './hooks/useConnect/disconnectSdk';
4343
import {
@@ -376,42 +376,43 @@ const SendbirdSDK = ({
376376
},
377377
markAsReadScheduler,
378378
markAsDeliveredScheduler,
379-
// From UIKitConfigProvider.localConfigs
380-
disableUserProfile:
381-
!configs.common.enableUsingDefaultUserProfile,
382-
isReactionEnabled:
383-
sdkInitialized && configsWithAppAttr(sdk).groupChannel.channel.enableReactions,
384-
isMentionEnabled:
385-
configs.groupChannel.channel.enableMention,
386-
isVoiceMessageEnabled:
387-
configs.groupChannel.channel.enableVoiceMessage,
388-
replyType:
389-
getCaseResolvedReplyType(configs.groupChannel.channel.replyType).upperCase,
390-
isTypingIndicatorEnabledOnChannelList:
391-
configs.groupChannel.channelList.enableTypingIndicator,
392-
isMessageReceiptStatusEnabledOnChannelList:
393-
configs.groupChannel.channelList.enableMessageReceiptStatus,
394-
showSearchIcon:
395-
sdkInitialized && configsWithAppAttr(sdk).groupChannel.setting.enableMessageSearch,
396379
// Remote configs set from dashboard by UIKit feature configuration
380+
common: configs.common,
397381
groupChannel: {
398382
enableOgtag: sdkInitialized && configsWithAppAttr(sdk).groupChannel.channel.enableOgtag,
399383
enableTypingIndicator: configs.groupChannel.channel.enableTypingIndicator,
400-
enableDocument: configs.groupChannel.channel.input.enableDocument,
401384
enableReactions: sdkInitialized && configsWithAppAttr(sdk).groupChannel.channel.enableReactions,
402385
enableReactionsSupergroup: sdkInitialized && configsWithAppAttr(sdk).groupChannel.channel.enableReactionsSupergroup,
386+
enableMention: configs.groupChannel.channel.enableMention,
403387
replyType: configs.groupChannel.channel.replyType,
404-
threadReplySelectType: getCaseResolvedThreadReplySelectType(configs.groupChannel.channel.threadReplySelectType).lowerCase,
388+
threadReplySelectType: configs.groupChannel.channel.threadReplySelectType,
389+
enableVoiceMessage: configs.groupChannel.channel.enableVoiceMessage,
390+
enableDocument: configs.groupChannel.channel.input.enableDocument,
405391
typingIndicatorTypes: configs.groupChannel.channel.typingIndicatorTypes,
406392
enableFeedback: configs.groupChannel.channel.enableFeedback,
407393
enableSuggestedReplies: configs.groupChannel.channel.enableSuggestedReplies,
408394
showSuggestedRepliesFor: configs.groupChannel.channel.showSuggestedRepliesFor,
409395
},
396+
groupChannelList: {
397+
enableTypingIndicator: configs.groupChannel.channelList.enableTypingIndicator,
398+
enableMessageReceiptStatus: configs.groupChannel.channelList.enableMessageReceiptStatus,
399+
},
400+
groupChannelSettings: {
401+
enableMessageSearch: sdkInitialized && configsWithAppAttr(sdk).groupChannel.setting.enableMessageSearch,
402+
},
410403
openChannel: {
411-
enableOgtag:
412-
sdkInitialized && configsWithAppAttr(sdk).openChannel.channel.enableOgtag,
404+
enableOgtag: sdkInitialized && configsWithAppAttr(sdk).openChannel.channel.enableOgtag,
413405
enableDocument: configs.openChannel.channel.input.enableDocument,
414406
},
407+
// deprecated configs
408+
disableUserProfile: !configs.common.enableUsingDefaultUserProfile,
409+
isReactionEnabled: sdkInitialized && configsWithAppAttr(sdk).groupChannel.channel.enableReactions,
410+
isMentionEnabled: configs.groupChannel.channel.enableMention,
411+
isVoiceMessageEnabled: configs.groupChannel.channel.enableVoiceMessage,
412+
replyType: getCaseResolvedReplyType(configs.groupChannel.channel.replyType).upperCase,
413+
isTypingIndicatorEnabledOnChannelList: configs.groupChannel.channelList.enableTypingIndicator,
414+
isMessageReceiptStatusEnabledOnChannelList: configs.groupChannel.channelList.enableMessageReceiptStatus,
415+
showSearchIcon: sdkInitialized && configsWithAppAttr(sdk).groupChannel.setting.enableMessageSearch,
415416
},
416417
eventHandlers,
417418
emojiManager,

src/lib/types.ts

Lines changed: 43 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ export interface SBUEventHandlers {
5757
}
5858

5959
export interface SendBirdStateConfig {
60-
disableUserProfile: boolean;
61-
disableMarkAsDelivered: boolean;
6260
renderUserProfile?: (props: RenderUserProfileProps) => React.ReactElement;
6361
onUserProfileMessage?: (props: GroupChannel) => void;
6462
allowProfileEdit: boolean;
@@ -70,13 +68,7 @@ export interface SendBirdStateConfig {
7068
pubSub: SBUGlobalPubSub;
7169
logger: Logger;
7270
setCurrentTheme: (theme: 'light' | 'dark') => void;
73-
/** @deprecated Please use setCurrentTheme instead * */
74-
setCurrenttheme: (theme: 'light' | 'dark') => void;
7571
userListQuery?(): UserListQuery;
76-
isReactionEnabled: boolean;
77-
isMentionEnabled: boolean;
78-
isMultipleFilesMessageEnabled: boolean;
79-
isVoiceMessageEnabled?: boolean;
8072
uikitUploadSizeLimit: number;
8173
uikitMultipleFilesMessageLimit: number;
8274
voiceRecord?: {
@@ -90,28 +82,56 @@ export interface SendBirdStateConfig {
9082
imageCompression?: ImageCompressionOptions;
9183
markAsReadScheduler: MarkAsReadSchedulerType;
9284
markAsDeliveredScheduler: MarkAsDeliveredSchedulerType;
93-
isTypingIndicatorEnabledOnChannelList?: boolean;
94-
isMessageReceiptStatusEnabledOnChannelList?: boolean;
95-
replyType: ReplyType;
96-
showSearchIcon?: boolean;
85+
disableMarkAsDelivered: boolean;
86+
isMultipleFilesMessageEnabled: boolean;
9787
// Remote configs set from dashboard by UIKit feature configuration
88+
common: {
89+
enableUsingDefaultUserProfile: SBUConfig['common']['enableUsingDefaultUserProfile'];
90+
},
9891
groupChannel: {
9992
enableOgtag: SBUConfig['groupChannel']['channel']['enableOgtag'];
10093
enableTypingIndicator: SBUConfig['groupChannel']['channel']['enableTypingIndicator'];
101-
enableDocument: SBUConfig['groupChannel']['channel']['input']['enableDocument'];
10294
enableReactions: SBUConfig['groupChannel']['channel']['enableReactions'];
10395
enableReactionsSupergroup: SBUConfig['groupChannel']['channel']['enableReactionsSupergroup'];
96+
enableMention: SBUConfig['groupChannel']['channel']['enableMention'];
10497
replyType: SBUConfig['groupChannel']['channel']['replyType'];
10598
threadReplySelectType: SBUConfig['groupChannel']['channel']['threadReplySelectType'];
99+
enableVoiceMessage: SBUConfig['groupChannel']['channel']['enableVoiceMessage'];
106100
typingIndicatorTypes: SBUConfig['groupChannel']['channel']['typingIndicatorTypes'];
101+
enableDocument: SBUConfig['groupChannel']['channel']['input']['enableDocument'];
107102
enableFeedback: SBUConfig['groupChannel']['channel']['enableFeedback'];
108103
enableSuggestedReplies: SBUConfig['groupChannel']['channel']['enableSuggestedReplies'];
109104
showSuggestedRepliesFor: SBUConfig['groupChannel']['channel']['showSuggestedRepliesFor'];
110105
},
106+
groupChannelList: {
107+
enableTypingIndicator: SBUConfig['groupChannel']['channelList']['enableTypingIndicator'];
108+
enableMessageReceiptStatus: SBUConfig['groupChannel']['channelList']['enableMessageReceiptStatus'];
109+
},
110+
groupChannelSettings: {
111+
enableMessageSearch: SBUConfig['groupChannel']['setting']['enableMessageSearch'];
112+
},
111113
openChannel: {
112114
enableOgtag: SBUConfig['openChannel']['channel']['enableOgtag'];
113115
enableDocument: SBUConfig['openChannel']['channel']['input']['enableDocument'];
114116
},
117+
/** @deprecated Please use `common.enableUsingDefaultUserProfile` instead * */
118+
disableUserProfile: boolean;
119+
/** @deprecated Please use `groupChannel.enableReactions` instead * */
120+
isReactionEnabled: boolean;
121+
/** @deprecated Please use `groupChannel.enableMention` instead * */
122+
isMentionEnabled: boolean;
123+
/** @deprecated Please use `groupChannel.enableVoiceMessage` instead * */
124+
isVoiceMessageEnabled?: boolean;
125+
/** @deprecated Please use `groupChannel.replyType` instead * */
126+
replyType: ReplyType;
127+
/** @deprecated Please use `groupChannelSettings.enableMessageSearch` instead * */
128+
showSearchIcon?: boolean;
129+
/** @deprecated Please use `groupChannelList.enableTypingIndicator` instead * */
130+
isTypingIndicatorEnabledOnChannelList?: boolean;
131+
/** @deprecated Please use `groupChannelList.enableMessageReceiptStatus` instead * */
132+
isMessageReceiptStatusEnabledOnChannelList?: boolean;
133+
/** @deprecated Please use setCurrentTheme instead * */
134+
setCurrenttheme: (theme: 'light' | 'dark') => void;
115135
}
116136

117137
export type SendbirdChatType = SendbirdChat & ModuleNamespaces<[GroupChannelModule, OpenChannelModule]>;
@@ -233,13 +253,21 @@ export interface sendbirdSelectorsInterface {
233253
}
234254

235255
export interface CommonUIKitConfigProps {
256+
/** @deprecated Please use `uikitOptions.common.enableUsingDefaultUserProfile` instead * */
257+
disableUserProfile?: boolean;
258+
/** @deprecated Please use `uikitOptions.groupChannel.replyType` instead * */
236259
replyType?: 'NONE' | 'QUOTE_REPLY' | 'THREAD';
237-
isMentionEnabled?: boolean;
260+
/** @deprecated Please use `uikitOptions.groupChannel.enableReactions` instead * */
238261
isReactionEnabled?: boolean;
239-
disableUserProfile?: boolean;
262+
/** @deprecated Please use `uikitOptions.groupChannel.enableMention` instead * */
263+
isMentionEnabled?: boolean;
264+
/** @deprecated Please use `uikitOptions.groupChannel.enableVoiceMessage` instead * */
240265
isVoiceMessageEnabled?: boolean;
266+
/** @deprecated Please use `uikitOptions.groupChannelList.enableTypingIndicator` instead * */
241267
isTypingIndicatorEnabledOnChannelList?: boolean;
268+
/** @deprecated Please use `uikitOptions.groupChannelList.enableMessageReceiptStatus` instead * */
242269
isMessageReceiptStatusEnabledOnChannelList?: boolean;
270+
/** @deprecated Please use `uikitOptions.groupChannelSettings.enableMessageSearch` instead * */
243271
showSearchIcon?: boolean;
244272
}
245273

src/lib/utils/uikitConfigMapper.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ export function uikitConfigMapper({
1818
return {
1919
common: {
2020
enableUsingDefaultUserProfile: uikitOptions.common?.enableUsingDefaultUserProfile
21-
?? (typeof disableUserProfile === 'boolean'
22-
? !disableUserProfile
23-
: undefined),
21+
?? (typeof disableUserProfile === 'boolean' ? !disableUserProfile : undefined),
2422
},
2523
groupChannel: {
2624
enableOgtag: uikitOptions.groupChannel?.enableOgtag,

src/modules/App/AppLayout.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { MobileLayout } from './MobileLayout';
88

99
import useSendbirdStateContext from '../../hooks/useSendbirdStateContext';
1010
import { SendableMessageType } from '../../utils';
11+
import { getCaseResolvedReplyType } from '../../lib/utils/resolvedReplyType';
1112

1213
export const AppLayout: React.FC<AppLayoutProps> = (
1314
props: AppLayoutProps,
@@ -23,7 +24,7 @@ export const AppLayout: React.FC<AppLayoutProps> = (
2324
} = props;
2425

2526
const globalStore = useSendbirdStateContext();
26-
const globalConfigs = globalStore?.config;
27+
const globalConfigs = globalStore.config;
2728

2829
const [showThread, setShowThread] = useState(false);
2930
const [threadTargetMessage, setThreadTargetMessage] = useState<SendableMessageType | null>(null);
@@ -37,9 +38,9 @@ export const AppLayout: React.FC<AppLayoutProps> = (
3738
* Below configs can be set via Dashboard UIKit config setting but as a lower priority than App props.
3839
* So need to be have fallback value \w global configs even though each prop values are undefined
3940
*/
40-
const replyType = props.replyType ?? globalConfigs?.replyType;
41-
const isReactionEnabled = props.isReactionEnabled ?? globalConfigs?.isReactionEnabled;
42-
const showSearchIcon = props.showSearchIcon ?? globalConfigs?.showSearchIcon;
41+
const replyType = props.replyType ?? getCaseResolvedReplyType(globalConfigs.groupChannel.replyType).upperCase;
42+
const isReactionEnabled = props.isReactionEnabled ?? globalConfigs.groupChannel.enableReactions;
43+
const showSearchIcon = props.showSearchIcon ?? globalConfigs.groupChannelSettings.enableMessageSearch;
4344

4445
return (
4546
<>

src/modules/App/index.tsx

Lines changed: 32 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,14 @@ export interface AppProps {
2626
profileUrl?: SendbirdProviderProps['profileUrl'];
2727
dateLocale?: SendbirdProviderProps['dateLocale'];
2828
config?: SendbirdProviderProps['config'];
29-
isReactionEnabled?: SendbirdProviderProps['isReactionEnabled'];
30-
isMentionEnabled?: SendbirdProviderProps['isMentionEnabled'];
31-
isVoiceMessageEnabled?: SendbirdProviderProps['isVoiceMessageEnabled'];
3229
voiceRecord?: SendbirdProviderProps['voiceRecord'];
33-
replyType?: SendbirdProviderProps['replyType'];
3430
isMultipleFilesMessageEnabled?: SendbirdProviderProps['isMultipleFilesMessageEnabled'];
3531
colorSet?: SendbirdProviderProps['colorSet'];
3632
stringSet?: SendbirdProviderProps['stringSet'];
3733
allowProfileEdit?: SendbirdProviderProps['allowProfileEdit'];
38-
disableUserProfile?: SendbirdProviderProps['disableUserProfile'];
3934
disableMarkAsDelivered?: SendbirdProviderProps['disableMarkAsDelivered'];
4035
renderUserProfile?: SendbirdProviderProps['renderUserProfile'];
41-
showSearchIcon?: SendbirdProviderProps['showSearchIcon'];
4236
imageCompression?: SendbirdProviderProps['imageCompression'];
43-
isTypingIndicatorEnabledOnChannelList?: SendbirdProviderProps['isTypingIndicatorEnabledOnChannelList'];
44-
isMessageReceiptStatusEnabledOnChannelList?: SendbirdProviderProps['isMessageReceiptStatusEnabledOnChannelList'];
4537
uikitOptions?: SendbirdProviderProps['uikitOptions'];
4638
isUserIdUsedForNickname?: SendbirdProviderProps['isUserIdUsedForNickname'];
4739
sdkInitParams?: SendbirdProviderProps['sdkInitParams'];
@@ -57,6 +49,23 @@ export interface AppProps {
5749
* If this option is enabled, it uses legacy modules (Channel, ChannelList) that are not applied local caching.
5850
* */
5951
enableLegacyChannelModules?: boolean;
52+
53+
/** @deprecated Please use `uikitOptions.common.enableUsingDefaultUserProfile` instead * */
54+
disableUserProfile?: SendbirdProviderProps['disableUserProfile'];
55+
/** @deprecated Please use `uikitOptions.groupChannel.replyType` instead * */
56+
replyType?: SendbirdProviderProps['replyType'];
57+
/** @deprecated Please use `uikitOptions.groupChannel.enableReactions` instead * */
58+
isReactionEnabled?: SendbirdProviderProps['isReactionEnabled'];
59+
/** @deprecated Please use `uikitOptions.groupChannel.enableMention` instead * */
60+
isMentionEnabled?: SendbirdProviderProps['isMentionEnabled'];
61+
/** @deprecated Please use `uikitOptions.groupChannel.enableVoiceMessage` instead * */
62+
isVoiceMessageEnabled?: SendbirdProviderProps['isVoiceMessageEnabled'];
63+
/** @deprecated Please use `uikitOptions.groupChannelList.enableTypingIndicator` instead * */
64+
isTypingIndicatorEnabledOnChannelList?: SendbirdProviderProps['isTypingIndicatorEnabledOnChannelList'];
65+
/** @deprecated Please use `uikitOptions.groupChannelList.enableMessageReceiptStatus` instead * */
66+
isMessageReceiptStatusEnabledOnChannelList?: SendbirdProviderProps['isMessageReceiptStatusEnabledOnChannelList'];
67+
/** @deprecated Please use `uikitOptions.groupChannelSettings.enableMessageSearch` instead * */
68+
showSearchIcon?: SendbirdProviderProps['showSearchIcon'];
6069
}
6170

6271
export default function App(props: AppProps) {
@@ -86,6 +95,9 @@ export default function App(props: AppProps) {
8695
sdkInitParams,
8796
customExtensionParams,
8897
eventHandlers,
98+
isMultipleFilesMessageEnabled,
99+
isUserIdUsedForNickname = true,
100+
enableLegacyChannelModules = false,
89101
uikitOptions,
90102
// The below configs are duplicates of the Dashboard UIKit Configs.
91103
// Since their default values will be set in the Sendbird component,
@@ -96,11 +108,8 @@ export default function App(props: AppProps) {
96108
replyType,
97109
disableUserProfile,
98110
isVoiceMessageEnabled,
99-
isMultipleFilesMessageEnabled,
100111
isTypingIndicatorEnabledOnChannelList,
101112
isMessageReceiptStatusEnabledOnChannelList,
102-
isUserIdUsedForNickname = true,
103-
enableLegacyChannelModules = false,
104113
} = props;
105114
const [currentChannel, setCurrentChannel] = useState(null);
106115

@@ -120,18 +129,19 @@ export default function App(props: AppProps) {
120129
userListQuery={userListQuery}
121130
config={config}
122131
colorSet={colorSet}
123-
disableUserProfile={disableUserProfile}
124132
disableMarkAsDelivered={disableMarkAsDelivered}
125133
renderUserProfile={renderUserProfile}
126134
imageCompression={imageCompression}
127-
isReactionEnabled={isReactionEnabled}
128-
isMentionEnabled={isMentionEnabled}
129-
isVoiceMessageEnabled={isVoiceMessageEnabled}
130135
isMultipleFilesMessageEnabled={isMultipleFilesMessageEnabled}
131136
voiceRecord={voiceRecord}
132137
onUserProfileMessage={(channel) => {
133138
setCurrentChannel(channel);
134139
}}
140+
uikitOptions={uikitOptions}
141+
isUserIdUsedForNickname={isUserIdUsedForNickname}
142+
sdkInitParams={sdkInitParams}
143+
customExtensionParams={customExtensionParams}
144+
eventHandlers={eventHandlers}
135145
isTypingIndicatorEnabledOnChannelList={
136146
isTypingIndicatorEnabledOnChannelList
137147
}
@@ -140,23 +150,22 @@ export default function App(props: AppProps) {
140150
}
141151
replyType={replyType}
142152
showSearchIcon={showSearchIcon}
143-
uikitOptions={uikitOptions}
144-
isUserIdUsedForNickname={isUserIdUsedForNickname}
145-
sdkInitParams={sdkInitParams}
146-
customExtensionParams={customExtensionParams}
147-
eventHandlers={eventHandlers}
153+
disableUserProfile={disableUserProfile}
154+
isReactionEnabled={isReactionEnabled}
155+
isMentionEnabled={isMentionEnabled}
156+
isVoiceMessageEnabled={isVoiceMessageEnabled}
148157
>
149158
<AppLayout
150-
isReactionEnabled={isReactionEnabled}
151-
replyType={replyType}
152-
showSearchIcon={showSearchIcon}
153159
isMessageGroupingEnabled={isMessageGroupingEnabled}
154160
allowProfileEdit={allowProfileEdit}
155161
onProfileEditSuccess={onProfileEditSuccess}
156162
disableAutoSelect={disableAutoSelect}
157163
currentChannel={currentChannel}
158164
setCurrentChannel={setCurrentChannel}
159165
enableLegacyChannelModules={enableLegacyChannelModules}
166+
isReactionEnabled={isReactionEnabled}
167+
replyType={replyType}
168+
showSearchIcon={showSearchIcon}
160169
/>
161170
</Sendbird>
162171
);

0 commit comments

Comments
 (0)