         
         let cell: DUMessageCollectionViewCell = collectionView.dequeueReusableCellWithReuseIdentifier(cellIdentifier, forIndexPath: indexPath) as! DUMessageCollectionViewCell
         cell.delegate = self
-        // TODO: add media cell
+
         if messageItem.isMediaMessage {
             cell.messageMediaView = messageItem.mediaItem?.getMediaContentView() ?? messageItem.mediaItem?.placeholderView
         } else {

        
        let du_collectionView = collectionView as! DUMessageCollectionView
        let du_collectionViewLayout = du_collectionView.collectionViewLayout as! DUMessageCollectionViewFlowLayout
        
        var cellIdentifier: String = ""
        if messageItem.isOutgoingMessage {

    /// Scroll to the bottom of message collection view
    final public func scrollToBottom(animated animated: Bool) {
        guard collectionView?.numberOfSections() != 0 else { return }
        guard collectionView?.numberOfItemsInSection(0) != 0 else { return }
        
        let lastIndexPath: NSIndexPath = NSIndexPath(forItem: collectionView!.numberOfItemsInSection(0) - 1, inSection: 0)
        scrollTo(indexPath: lastIndexPath, animated: animated)
