closeChannel = async (channel) => {
console.log(channel.type, channel?.type === ‘PUBLIC’)
if (channel?.type === ‘PRIVATE’ || channel?.type === ‘PUBLIC’) {
console.log(‘entered’)
const response = await kitty.leaveChannel({ channel: channel });
console.log(response)
if (response?.succeeded) {
this.props.hideChannel(channel);
} else {
console.log(response)
}
};
For select public channels, the response is not fired, its not even run. It does enter the function and the channel is public, once the function is called - the function stops. SDK 1.30. This only happens with select channels, my assumption was originally that the user had already left the channel, if so it should still throw a response. However the user is still getting it back from their list.