     lazy var outgoingBubbleImageView: JSQMessagesBubbleImage = self.setupOutgoingBubble()
     lazy var incomingBubbleImageView: JSQMessagesBubbleImage = self.setupIncomingBubble()
     var user:User!
-    var channel:Channel!
+    var channel:Channel? {
+        didSet {
+            title = channel?.name
+        }
+    }
     
  // MARK: DataSource & Delegate
     override func viewDidLoad() {

    private func addMessage(withId id: String, name: String, text: String) {
        let message = Message(userId: id, userName: name, message: text)
        
        ChatFacade.createMessage(channelId: channel.id!, message: message)
    }
}

    }
    
    func configureObserver() {
        ChatFacade.observeMessages(byListingLast: 25, channelId: (channel?.id!)!) { message in
            self.messages.append(message)
            JSQSystemSoundPlayer.jsq_playMessageReceivedAlert()
            self.finishReceivingMessage()
