Skip to main content

syncThreads

plugin.chatApi.syncThreads(): Promise<void>

Synchronizes threads from the thread store to the chat manager.

Ensures that the in-memory chat manager is up-to-date with the persisted thread store, resolving any inconsistencies.

Parameters

No parameters.

Returns

Promise<void> — A promise that resolves when synchronization is complete

Example

import plugin from '@codebolt/plugin-sdk';

const result = await plugin.chatApi.syncThreads();
console.log(result);