 
                         let cell = collectionView.dequeueReusableCellWithReuseIdentifier(chatLeftImageCellIdentifier, forIndexPath: indexPath) as! ChatLeftImageCell
 
-                        cell.configureWithMessage(message, messageImagePreferredWidth: messageImagePreferredWidth, messageImagePreferredHeight: messageImagePreferredHeight, messageImagePreferredAspectRatio: messageImagePreferredAspectRatio, mediaTapAction: { [weak self] in
-
-                            if message.downloadState == MessageDownloadState.Downloaded.rawValue {
-                                self?.performSegueWithIdentifier("showMessageMedia", sender: message)
-
-                            } else {
-                                YepAlert.alertSorry(message: NSLocalizedString("Please wait while the image is not dready!", comment: ""), inViewController: self)
-                            }
-
-                        }, collectionView: collectionView, indexPath: indexPath)
-
-                        cell.tapAvatarAction = { [weak self] user in
-                            self?.performSegueWithIdentifier("showProfile", sender: user)
-                        }
-                        
                         return cell
 
                     case MessageMediaType.Audio.rawValue:
 
                         let cell = collectionView.dequeueReusableCellWithReuseIdentifier(chatLeftAudioCellIdentifier, forIndexPath: indexPath) as! ChatLeftAudioCell
 
-                        let audioPlayedDuration = audioPlayedDurationOfMessage(message)
-
-                        cell.configureWithMessage(message, audioPlayedDuration: audioPlayedDuration, audioBubbleTapAction: { [weak self] in
-
-                            if message.downloadState == MessageDownloadState.Downloaded.rawValue {
-                                self?.playMessageAudioWithMessage(message)
-
-                            } else {
-                                YepAlert.alertSorry(message: NSLocalizedString("Please wait while the audio is not dready!", comment: ""), inViewController: self)
-                            }
-
-                        }, collectionView: collectionView, indexPath: indexPath)
-
-                        cell.tapAvatarAction = { [weak self] user in
-                            self?.performSegueWithIdentifier("showProfile", sender: user)
-                        }
-
                         return cell
 
                     case MessageMediaType.Video.rawValue:
 
                         let cell = collectionView.dequeueReusableCellWithReuseIdentifier(chatLeftVideoCellIdentifier, forIndexPath: indexPath) as! ChatLeftVideoCell
 
-                        cell.configureWithMessage(message, messageImagePreferredWidth: messageImagePreferredWidth, messageImagePreferredHeight: messageImagePreferredHeight, messageImagePreferredAspectRatio: messageImagePreferredAspectRatio, mediaTapAction: { [weak self] in
-
-                            if message.downloadState == MessageDownloadState.Downloaded.rawValue {
-                                self?.performSegueWithIdentifier("showMessageMedia", sender: message)
-
-                            } else {
-                                YepAlert.alertSorry(message: NSLocalizedString("Please wait while the video is not dready!", comment: ""), inViewController: self)
-                            }
-
-                        }, collectionView: collectionView, indexPath: indexPath)
-
-                        cell.tapAvatarAction = { [weak self] user in
-                            self?.performSegueWithIdentifier("showProfile", sender: user)
-                        }
-
                         return cell
 
                     case MessageMediaType.Location.rawValue:
 
                         let cell = collectionView.dequeueReusableCellWithReuseIdentifier(chatLeftLocationCellIdentifier, forIndexPath: indexPath) as! ChatLeftLocationCell
 
-                        cell.configureWithMessage(message, mediaTapAction: { [weak self] in
-                            if let coordinate = message.coordinate {
-                                let locationCoordinate = CLLocationCoordinate2D(latitude: coordinate.latitude, longitude: coordinate.longitude)
-                                let mapItem = MKMapItem(placemark: MKPlacemark(coordinate: locationCoordinate, addressDictionary: nil))
-                                /*
-                                let launchOptions = [MKLaunchOptionsDirectionsModeKey: MKLaunchOptionsDirectionsModeDriving]
-                                mapItem.openInMapsWithLaunchOptions(launchOptions)
-                                */
-                                mapItem.openInMapsWithLaunchOptions(nil)
-                            }
-
-                        }, collectionView: collectionView, indexPath: indexPath)
-
-                        cell.tapAvatarAction = { [weak self] user in
-                            self?.performSegueWithIdentifier("showProfile", sender: user)
-                        }
-
                         return cell
 
                     default:


                let cell = collectionView.dequeueReusableCellWithReuseIdentifier(chatSectionDateCellIdentifier, forIndexPath: indexPath) as! ChatSectionDateCell

                let createdAt = NSDate(timeIntervalSince1970: message.createdUnixTime)

                if createdAt.isInCurrentWeek() {
                    cell.sectionDateLabel.text = sectionDateInCurrentWeekFormatter.stringFromDate(createdAt)
                } else {
                    cell.sectionDateLabel.text = sectionDateFormatter.stringFromDate(createdAt)
                }

                return cell
            }



                        cell.configureWithMessage(message, textContentLabelWidth: textContentLabelWidthOfMessage(message), collectionView: collectionView, indexPath: indexPath)

                        return cell
                    }

