Mark entire threads as seen or unseen for the current user. This does not affect whether the user is subscribed to the thread or not.
Vanilla JavaScript:
// To mark a thread as unseen
await window.CordSDK.thread.setSeen('my-awesome-thread-id', false);
// To mark a thread as seen
await window.CordSDK.thread.setSeen('my-awesome-thread-id', true);
// To mark a thread as unseenawaitwindow.CordSDK.thread.setSeen('my-awesome-thread-id',false);// To mark a thread as seenawaitwindow.CordSDK.thread.setSeen('my-awesome-thread-id',true);
Copy
Vanilla JavaScript:
// To mark threads as unseen
await window.CordSDK.thread.setSeen({ metadata: {archived: true} }, false);
// To mark threads as seen
await window.CordSDK.thread.setSeen({ metadata: {archived: true} }, true);
// To mark threads as unseenawaitwindow.CordSDK.thread.setSeen({metadata:{archived:true}},false);// To mark threads as seenawaitwindow.CordSDK.thread.setSeen({metadata:{archived:true}},true);