lightning:conversationChatEnded

Event triggered when an active chat ends or an agent leaves a chat conference. This event is also triggered when using Enhanced Messaging channels.

NameTypeDescription
recordIdStringThe ID of the work record that’s associated with the current chat.

Component code:

Controller code: