Search code examples
getstream-io

Updating a chat channel without update message?


We update channels server-side using JS.

How can we update a channel without posting a message in the chat?

https://getstream.io/chat/docs/channel_update/?language=js


Solution

  • Signature is like as following:

    channel.update(new_channel_data_object_to_be_merged, optional_update_message)

    Since message is optional, you can skip it and by only providing data, you can update a channel.