ChatThreadMessageHandler
Manages all the necessary procedures required for service messages. This newly created object influences changes in parent ChatThreadHandler in number of ways. Though it does not modify the parent directly, it can force some events to happen which in-turn update the data.
Functions
Notifies server that we need to load more messages. This expects that the instance provided by parent ChatThreadHandler has the most up-to-date data. Be warned that calling this method on a thread that has not been updated has undefined consequences. It can result, for example, in message duplication.
Sends message to the server and suspends until the message has been dispatched.
Simplified method to send a simple user message to the agent.
Simplified method to send an attachment to the agent.