Added method to JSQMessagesViewControllerDelegate.