Skip to main content

hideThread

client.chat.hideThread(data: ThreadIdRequest): Promise<void>

Hides a thread from the user interface.

Removes the thread from the visible thread list without deleting it. The thread data is preserved and can be restored later.

Parameters​

ParameterTypeRequiredDescription
dataThreadIdRequestYesThe thread identifier

Returns​

Promise<void> — A promise that resolves when the thread has been hidden

Example​

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.chat.hideThread(/* ThreadIdRequest */);
console.log(result);