Skip to content

1.0.0

Compare
Choose a tag to compare
@mukeshthawani mukeshthawani released this 25 Jan 16:16
· 1245 commits to master since this release
36a8381

Enhancements

  • Added support for showing Away message. Now away message will be shown if the agent is on away mode.
  • While creating a conversation, a default agent will be fetched and added. Now it's not required to pass the agent Ids.
  • A notification will be sent when the conversation view is launched and closed. This is how you can observe those two notifications:
NotificationCenter.default.addObserver(
forName: NSNotification.Name(rawValue: KMConversationViewConfiguration().conversationLaunchNotificationName),
object: nil, queue: nil) { (notification) in

    guard let info = notification.userInfo,
        let conversationId =  info["ConversationId"] else { return }

    print("Conversation launched and the conversation Id is: ", conversationId)
}


NotificationCenter.default.addObserver(
forName: NSNotification.Name(rawValue: KMConversationViewConfiguration().backButtonNotificationName),
object: nil, queue: nil) { (notification) in

    guard let info = notification.userInfo,
        let conversationId =  info["ConversationId"] else { return }

    print("Conversation closed and the conversation Id is: ", conversationId)
}