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
subscribed #
required
boolean
Whether the user should be subscribed to the thread.