Set the allowEndChat parameter in the UIConfiguration object to false to hide the End Chat button from the messaging conversation menu.
important: This feature requires version 1.9.0 or later of the Enhanced In-App Chat SDK.
This article applies to the following implementations:
| UI SDK | Core SDK |
|---|---|
| ✅ |
/**
* Create a UIConfiguration object and set the value allowEndChat in the conversationOptionsConfiguration to false to hide it.
*/
let configuration = UIConfiguration(serviceAPI: <String>, organizationId: <String>, developerName: <name>, conversationId: <UUID>)
configuration.conversationOptionsConfiguration = ConversationOptionsConfiguration(allowEndChat: false)