thread
Creates a new thread handler with given thread. thread is used as a template and this particular instance will not be updated in response to changes in the handler.
Live-chat side effect: in live-chat configurations creating the handler arms automatic welcome-message handling for the thread. This is intentional and eager: the welcome message is delivered as the thread's first message as soon as possible — including for a freshly created (pending) thread, and without waiting for the thread to be observed via ChatThreadHandler.threadFlow. The side effect is one-shot per thread: the welcome-message event is dispatched at most once for a given thread — re-creating a handler for the same thread does not re-arm or re-send it. This welcome behaviour is specific to live-chat configurations.
Parameters
recovered from threadsFlow