Skip to main content

hideThread

plugin.chatApi.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 plugin from '@codebolt/plugin-sdk';

const result = await plugin.chatApi.hideThread(/* ThreadIdRequest */);
console.log(result);