Can't leave the conversation channel Error: Amity SDK (400300):

Hey I use this code for leaveing but i face this error
const didLeaveChannel = await ChannelRepository.leaveChannel(channel?.channelId);

error: message:Can’t leave the conversation channel

I created this channel to chat someone previously
now i want to leave this channel
this channel have two users

Hello @anser786 , The error occurs because conversation channels (one-on-one chats) cannot be left using the SDK. This limitation is why you are receiving the “Can’t leave the conversation channel” message.

For further information, please refer to the Amity SDK Channel Documentation.

Feel free to reach out if you need additional assistance.

Thanks for your support

1 Like