Set seen status

Set a thread's seen/read status for the current user


Overview #

Mark whether the whole thread, i.e. all the messages in the thread, are seen or unseen for the current user. This does not affect whether the user is subscribed to the thread or not.
// 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);
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.

seen #

required
boolean
Whether the thread should now be seen (true) or unseen (false).

Ask Cordy