 
             uploadImagesQueue.addOperations(uploadAttachmentOperations, waitUntilFinished: false)
             uploadImagesQueue.addOperation(uploadFinishOperation)
-
-            /*
-            dispatch_group_notify(uploadImagesGroup, dispatch_get_main_queue()) { [weak self] in
-
-                guard uploadAttachmentIDs.count == mediaImagesCount else {
-                    let message = uploadErrorMessage ?? NSLocalizedString("Upload failed!", comment: "")
-                    self?.uploadState = .Failed(message: message)
-
-                    return
-                }
-
-                if !uploadAttachmentIDs.isEmpty {
-
-                    let imageInfos: [JSONDictionary] = uploadAttachmentIDs.map({
-                        ["id": $0]
-                    })
-
-                    attachments = imageInfos
-
-                    kind = .Image
-                }
-
-                tryCreateFeed()
-            }
-            */
 
         case .SocialWork(let socialWork):
 


            let uploadImagesQueue = NSOperationQueue()
            var uploadAttachmentOperations = [UploadAttachmentOperation]()
            //let uploadImagesGroup = dispatch_group_create()

            var uploadAttachmentIDs = [String]()

            let mediaImagesCount = mediaImages.count
            var uploadErrorMessage: String?


                        }
                    }
                    uploadAttachmentOperations.append(operation)
                }
            })

