{"action":"created","issue":{"url":"https://api.github.com/repos/jessesquires/JSQMessagesViewController/issues/1784","repository_url":"https://api.github.com/repos/jessesquires/JSQMessagesViewController","labels_url":"https://api.github.com/repos/jessesquires/JSQMessagesViewController/issues/1784/labels{/name}","comments_url":"https://api.github.com/repos/jessesquires/JSQMessagesViewController/issues/1784/comments","events_url":"https://api.github.com/repos/jessesquires/JSQMessagesViewController/issues/1784/events","html_url":"https://github.com/jessesquires/JSQMessagesViewController/issues/1784","id":169133244,"number":1784,"title":"Delete button not appearing","user":{"login":"rostopira","id":16724952,"avatar_url":"https://avatars.githubusercontent.com/u/16724952?v=3","gravatar_id":"","url":"https://api.github.com/users/rostopira","html_url":"https://github.com/rostopira","followers_url":"https://api.github.com/users/rostopira/followers","following_url":"https://api.github.com/users/rostopira/following{/other_user}","gists_url":"https://api.github.com/users/rostopira/gists{/gist_id}","starred_url":"https://api.github.com/users/rostopira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rostopira/subscriptions","organizations_url":"https://api.github.com/users/rostopira/orgs","repos_url":"https://api.github.com/users/rostopira/repos","events_url":"https://api.github.com/users/rostopira/events{/privacy}","received_events_url":"https://api.github.com/users/rostopira/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jessesquires/JSQMessagesViewController/labels/questions%20&%20help","name":"questions & help","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-03T13:37:02Z","updated_at":"2016-08-04T07:21:32Z","closed_at":null,"body":"- Library version(s): 8\r\n- iOS version(s): 9.3.2\r\n- Related issues: #810 \r\n- Language: Swift 3\r\n\r\n## Bug report\r\nDelete button not appearing\r\n### Steps to reproduce\r\n```\r\noverride func collectionView(_ collectionView: UICollectionView, shouldShowMenuForItemAt indexPath: IndexPath) -> Bool {\r\n        super.collectionView(collectionView, shouldShowMenuForItemAt: indexPath)\r\n        return true\r\n    }\r\n    override func collectionView(_ collectionView: UICollectionView, canPerformAction action: Selector, forItemAt indexPath: IndexPath, withSender sender: AnyObject?) -> Bool {\r\n        super.collectionView(collectionView, canPerformAction: action, forItemAt: indexPath, withSender: sender)\r\n        switch action.description {\r\n            case \"delete:\": return true//data.messages[indexPath.item].id == senderId()\r\n            case \"copy:\":   return true\r\n            default:        return false\r\n        }\r\n    }\r\n    override func collectionView(_ collectionView: UICollectionView, performAction action: Selector, forItemAt indexPath: IndexPath, withSender sender: AnyObject?) {\r\n        super.collectionView(collectionView, performAction: action, forItemAt: indexPath, withSender: sender)\r\n        switch action.description {\r\n            case \"delete:\": msgRef.child(data.messages[indexPath.item].fireKey).delete(nil)\r\n            case \"copy:\":   UIPasteboard.general().string = data.messages[indexPath.item].message as String\r\n            default:        return\r\n        }\r\n    }\r\n\r\n```\r\nCopy button appearing and works. And I checked, that code after `case \"delete:\"` is executing, but button isn't appearing"},"comment":{"url":"https://api.github.com/repos/jessesquires/JSQMessagesViewController/issues/comments/237473408","html_url":"https://github.com/jessesquires/JSQMessagesViewController/issues/1784#issuecomment-237473408","issue_url":"https://api.github.com/repos/jessesquires/JSQMessagesViewController/issues/1784","id":237473408,"user":{"login":"rostopira","id":16724952,"avatar_url":"https://avatars.githubusercontent.com/u/16724952?v=3","gravatar_id":"","url":"https://api.github.com/users/rostopira","html_url":"https://github.com/rostopira","followers_url":"https://api.github.com/users/rostopira/followers","following_url":"https://api.github.com/users/rostopira/following{/other_user}","gists_url":"https://api.github.com/users/rostopira/gists{/gist_id}","starred_url":"https://api.github.com/users/rostopira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rostopira/subscriptions","organizations_url":"https://api.github.com/users/rostopira/orgs","repos_url":"https://api.github.com/users/rostopira/repos","events_url":"https://api.github.com/users/rostopira/events{/privacy}","received_events_url":"https://api.github.com/users/rostopira/received_events","type":"User","site_admin":false},"created_at":"2016-08-04T07:21:32Z","updated_at":"2016-08-04T07:21:32Z","body":"@Lucashuang0802 yes, I'm using develop branch"}}
{"actor":{"display_login":"rostopira"}}