get

abstract fun get(): ChatThread

Returns the most up-to-date thread with updated properties. This value is internally stored and is safe to call in main-thread context.

Effects and listeners update the instance if registered or called, otherwise the method returns the default value it was created from.


Registers a listener which can be cancelled any time. The thread registers for listeners to thread recovered events (triggered by refresh), message events (triggered by messages and its methods) and metadata events.

It will only call updates on the thread matching ids to the thread the handler instance was created from.