     }
     
     // MARK: Scrolling
-    
     private func scrollToBottom() {
         if messages.count > 0 {
             var lastItemIdx = self.tableView.numberOfRowsInSection(Constants.MessagesSection) - 1

}

// MARK: Chat Controller

@objc protocol LGChatControllerDelegate {
    optional func shouldChatController(chatController: LGChatController, addMessage message: LGChatMessage) -> Bool
    optional func chatController(chatController: LGChatController, didAddNewMessage message: LGChatMessage)
}

class LGChatController : UIViewController, UITableViewDelegate, UITableViewDataSource, LGChatInputDelegate, UINavigationBarDelegate, ContaggedUnknownPersonDelegate, ContaggedPickerDelegate{
    
    // MARK: Constants
    private struct Constants {

        }
        
        // Create left and right button for navigation item
        let rightButton = UIBarButtonItem(title: "New Contact", style:UIBarButtonItemStyle.Bordered, target: self, action: "addNewContact")
        let leftButton = UIBarButtonItem(title: "Back", style: .Plain, target: self, action:"dismissSelf")
        
        // Create two buttons for the navigation item
