GroupChannel sendUserMessage - SendbirdError: Invalid parameters

[Problem/Question]

I’m trying to select a room in a group channel and send a chat, but I keep getting an error in sendUserMessage.

For example, I used the code below.

currentlyJoinedChannel
.sendUserMessage({
message,
})
.onSucceeded((message: string) => {

})
.onFailed((error: any) => {

});

We see that the currentJoinedChannel has a value. Why doesn’t it?

Do I need any additional settings to send a chat?


// If problem, please fill out the below. If question, please delete.
[SDK Version]
@sendbird/chat : ^4.10.8

[Current impact]
Unable to send group chats