 
         previewTransitionViews = nil
         previewAttachmentPhotos = []
+        previewMessagePhotos = []
     }
 }
 

            if let index = previewAttachmentPhotos.indexOf(previewAttachmentPhoto) {
                return previewTransitionViews?[index]
            }
        }

        return nil


                        let photosViewController = PhotosViewController(photos: photos, initialPhoto: initialPhoto, delegate: self)
                        self.presentViewController(photosViewController, animated: true, completion: nil)
                    }
                }

                /*
                let vc = UIStoryboard(name: "MediaPreview", bundle: nil).instantiateViewControllerWithIdentifier("MediaPreviewViewController") as! MediaPreviewViewController
