Class ChatLog.AttachmentMessage

  • Enclosing class:
    ChatLog


    public static class ChatLog.AttachmentMessage
    extends ChatLog
    Chat log with an additional attachment field.

    This log is generated each time the visitor, an agent or any other ChatParticipant sent an attachment.

    Sample code to determine all attachment in the chat looks as follows:

    
     val chatAttachmentMessages = chatState
          .chatLogs
          .filterIsInstance<ChatLog.AttachmentMessage>()
          .map { it.attachment }