Please state the version of UIKit & OS you are using when creating a topic
and select the related tags
I am using react uikit = sendbird-uikit@1.0.3
I would like to stop users creating the group chat. I would like to create on my backend service.
How to restrict from UI Kit configuration?
I am following the example reference to control chat settings
import React, { useEffect, useState } from 'react';
import './Chat.css';
import { useHistory } from "react-router-dom";
import {
SendBirdProvider,
ChannelList,
Channel,
ChannelSettings,
} from 'sendbird-uikit';
import 'sendbird-uikit/dist/index.css';
export default function Chat({ userId, nickname, theme }) {
const history = useHistory();
useEffect(() => {
if (!userId || !nickname) {
history.push('/');
}
}, [userId, nickname, history]);
This file has been truncated. show original
But Not sure how to control creating new channel.
Hello @sreedharbukya
So, for now there is no JS workaround for disabling create-channel
There is a CSS workaround tho ->
.sendbird-channel-header .sendbird-channel-header__right-icon {
display: none;
}
We are planning to add renderProps pattern to customize channelList header, once that is released, you should be able to customize the add-channel icon using JS
Will keep you updated in this thread
1 Like
Also, we have released v1.1.2 already, this will give you access to reaction
Would recommend to try it out