Home > borogove > Chat > setActive

Chat.setActive() method

Call this whenever the user makes a chat or thread "active" in your UX If you call this with true you MUST later call it will false

Signature:

setActive(active: boolean, threadId: string | null): void;

Parameters

Parameter Type Description
active boolean true if the chat is "active", false otherwise
threadId string | null optional, what thread the user has selected if any

Returns:

void