Set subscribed status

Set a thread's subscribed status for the current user


Overview #

Set the subscribed status for an existing thread for the current user. A subscribed user will be notified of any new thread activity.
Vanilla JavaScript:
await window.CordSDK.thread.setSubscribed('my-awesome-thread-id', false);
await window.CordSDK.thread.setSubscribed('my-awesome-thread-id', false);
Copy

What this function returns #

A promise that resolves to true if the operation succeeded or rejects if it failed.

Arguments this function takes #


threadID #

required
string
The ID of the thread.

subscribed #

required
boolean
Whether the user should be subscribed to the thread.

Ask Cordy