-
Notifications
You must be signed in to change notification settings - Fork 76
Open
Description
We would like to have a functionality to change channels type. Currently we have 'messaging' (or private) and 'public'. Some 'messaging' private channels are group channels and would like to allow users to make them 'public' (and also allow to change back 'public' to 'messaging').
I tried to change the type
with updatePartial
, but it throws an error.
const serverClient = StreamChat.getInstance(this.apiKey, this.apiSecret);
const channel = await serverClient.queryChannels({
cid: { $eq: channelID },
});
const result = await channel[0].updatePartial({
set: { type: "messaging", isGroup: true },
});
Error message:
"data": {
"StatusCode": 403,
"code": 17,
"details": [],
"duration": "0.00ms",
"message": "UpdateChannelPartial failed with error: \"field `type` is reserved and cannot updated\"",
"more_info": "https://getstream.io/chat/docs/api_errors_response"
},
Metadata
Metadata
Assignees
Labels
No labels