@sendbird/uikit-react
Advanced tools
Changelog
[v3.3.4] (Jan 6 2023)
Fix:
Changelog
[v3.3.3] (Dec 22 2022)
Fix:
Changelog
[v3.3.2] (Dec 8 2022)
Features:
Add props renderTitle
to the <ChannelListHeader /> component
renderHeader
of <ChannelListHeader /> will be deprecatedAdd interface overrideInviteUser
Add overrideInviteUser to ChannelList, CreateChannel and ChannelSettings
This interface overrides InviteMember functionality. Customer has to create the channel and close the popup manually
export type OverrideInviteUserType = {
users: Array<string>;
onClose: () => void;
channelType: 'group' | 'supergroup' | 'broadcast';
};
export interface ChannelListProps {
overrideInviteUser?(params: OverrideInviteUserType): void;
}
export interface CreateChannelProps {
overrideInviteUser?(params: OverrideInviteUserType): void;
}
export type OverrideInviteMemberType = {
users: Array<string>;
onClose: () => void;
channel: GroupChannel;
};
ChannelSettings.overrideInviteUser?(params: OverrideInviteMemberType): void;
example:
<ChannelList
overrideInviteUser={({users, onClose, channelType}) => {
createMyChannel(users, channelType).then(() => {
onClose();
})
}}
/>
Fixes:
ThreadUIProps.renderMessage
.renderHeader
of <ChannelList />.isMentionEnabled
of <App />.messageSearchQuery
of <MessageSearch /> to MessageSearchQueryParams.