{"action":"created","issue":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/3745","repository_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android","labels_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/3745/labels{/name}","comments_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/3745/comments","events_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/3745/events","html_url":"https://github.com/wordpress-mobile/WordPress-Android/pull/3745","id":133345230,"number":3745,"title":"Feature/3732 trashed comments handling","user":{"login":"mzorz","id":6597771,"avatar_url":"https://avatars.githubusercontent.com/u/6597771?v=3","gravatar_id":"","url":"https://api.github.com/users/mzorz","html_url":"https://github.com/mzorz","followers_url":"https://api.github.com/users/mzorz/followers","following_url":"https://api.github.com/users/mzorz/following{/other_user}","gists_url":"https://api.github.com/users/mzorz/gists{/gist_id}","starred_url":"https://api.github.com/users/mzorz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzorz/subscriptions","organizations_url":"https://api.github.com/users/mzorz/orgs","repos_url":"https://api.github.com/users/mzorz/repos","events_url":"https://api.github.com/users/mzorz/events{/privacy}","received_events_url":"https://api.github.com/users/mzorz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-12T21:17:23Z","updated_at":"2016-02-12T21:58:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/pulls/3745","html_url":"https://github.com/wordpress-mobile/WordPress-Android/pull/3745","diff_url":"https://github.com/wordpress-mobile/WordPress-Android/pull/3745.diff","patch_url":"https://github.com/wordpress-mobile/WordPress-Android/pull/3745.patch"},"body":"\r\nAddresses https://github.com/wordpress-mobile/WordPress-Android/issues/3732\r\n\r\n### Notes:\r\n- I’m using the same Approve icon for Restore (only changed the name) - design team might want to take a look @mattmiklic (check screenshot below)\r\n- Saw the “Not spam” (unspam) button in the app already sets the comment as `APPROVED` when clicked, so doing the same for the “Restore” action\r\n- There didn’t seem to be a `DELETE PERMANENTLY` endpoint in XMLRPC API as per the documentation, and while I’ve seen the WP API supports this by having the `$force_delete` param set to true, it wasn’t there in the XMLRPC API docs, but I tried nevertheless and sending a fifth boolean parameter to the XMLRPC API  on the `wp.deleteComment` method works like as expected actually deleting the comment.\r\n\r\nActions available on an item in the  `Trashed` list are:\r\n\r\n- a) Restore (which is APPROVE)\r\n- b) Delete (permanently)\r\n- c) SPAM\r\n\r\nIf you hit Delete, we now display a dialog to confirm the action.\r\n\r\nSimilarly, the list selection has been implemented following this line. See long press on a comment in the filtered list for this.\r\n\r\n## Screenshots\r\n### Individual comment\r\n![screenshot_2016-02-12-18-20-31](https://cloud.githubusercontent.com/assets/6597771/13020690/959e478e-d1b5-11e5-98de-8a6970f349ca.png)\r\n\r\n![screenshot_2016-02-12-18-20-34](https://cloud.githubusercontent.com/assets/6597771/13020705/ab14c34a-d1b5-11e5-9374-be49d3df0a37.png)\r\n\r\n\r\n### Multiple selection\r\n![screenshot_2016-02-12-18-20-48](https://cloud.githubusercontent.com/assets/6597771/13020729/ca40ca66-d1b5-11e5-9198-4d5e4ed0a2d4.png)\r\n![screenshot_2016-02-12-18-20-51](https://cloud.githubusercontent.com/assets/6597771/13020730/ca417948-d1b5-11e5-8c6a-dc16d762fbfa.png)\r\n![screenshot_2016-02-12-18-20-58](https://cloud.githubusercontent.com/assets/6597771/13020728/ca40a568-d1b5-11e5-999d-de129cc70c98.png)\r\n"},"comment":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/comments/183503322","html_url":"https://github.com/wordpress-mobile/WordPress-Android/pull/3745#issuecomment-183503322","issue_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/3745","id":183503322,"user":{"login":"nbradbury","id":3903757,"avatar_url":"https://avatars.githubusercontent.com/u/3903757?v=3","gravatar_id":"","url":"https://api.github.com/users/nbradbury","html_url":"https://github.com/nbradbury","followers_url":"https://api.github.com/users/nbradbury/followers","following_url":"https://api.github.com/users/nbradbury/following{/other_user}","gists_url":"https://api.github.com/users/nbradbury/gists{/gist_id}","starred_url":"https://api.github.com/users/nbradbury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nbradbury/subscriptions","organizations_url":"https://api.github.com/users/nbradbury/orgs","repos_url":"https://api.github.com/users/nbradbury/repos","events_url":"https://api.github.com/users/nbradbury/events{/privacy}","received_events_url":"https://api.github.com/users/nbradbury/received_events","type":"User","site_admin":false},"created_at":"2016-02-12T21:58:44Z","updated_at":"2016-02-12T21:58:44Z","body":"If from the detail view I delete the only trashed comment, the list view is blank when I return to it (ie: there's no empty list message).\r\n\r\n![delete1](https://cloud.githubusercontent.com/assets/3903757/13021546/dadcac84-d1a9-11e5-8532-4a58c1d15cc9.png)\r\n"}}