I’m using currently UI Kit v3.1 but I have seen this happening before as well.
I create a conversationa channel like this:
const newChannel = {
displayName: displayName,
tags: ["tag"],
type: "conversation" as Amity.ChannelType,
userIds: userIds,
metadata: metadata,
};
const { data: channel } = await ChannelRepository.createChannel(newChannel);
Issue1:
the channel is created twice, I don’t think I’m calling it twice but even if I do, based on the documentation it shouldn’t happen
“Conversation channel is unique based on its membership. When creating conversation, the system will check if a channel with the same membership already exists. If such channel already exists, the system will return the existing channel instead of creating a new one.”
channelId: 65b36b8a7a56ee9f834762df
contains members:
userId: LOCAL-d6fd6e0c-4d04-369d-1bba-3a105703aab6
userId: LOCAL-dce658e8-83cb-1434-777f-3a105702913c
channelId :65b36b8a6880ec13b1720b6b
userId: LOCAL-d6fd6e0c-4d04-369d-1bba-3a105703aab6
userId: LOCAL-dce658e8-83cb-1434-777f-3a105702913c
these are the same user but different channel are created
Issue 2:
I have created in Amity Console a test community channel but I have disabled it but every time I create a conversational channel between two users I also get this community channel in the channel list for the user, why? when it is deleted?
I don’t have any options to remove/delete it from the console, but in the API i see that it has isDeleted: true
so I shouldn’t see this in the channels list inside the <AmityUiKitChat>
I see that the getChannels function has a param to filter the deleted channels but shouldn’t this be the default behavior inside <AmityUiKitChat>
why would I want to see the deleted channels ? Or is there an option for <AmityUiKitChat>
to filter this?