{"action":"created","issue":{"url":"https://api.github.com/repos/WhisperSystems/Signal-Android/issues/3053","labels_url":"https://api.github.com/repos/WhisperSystems/Signal-Android/issues/3053/labels{/name}","comments_url":"https://api.github.com/repos/WhisperSystems/Signal-Android/issues/3053/comments","events_url":"https://api.github.com/repos/WhisperSystems/Signal-Android/issues/3053/events","html_url":"https://github.com/WhisperSystems/Signal-Android/issues/3053","id":70558486,"number":3053,"title":"Sending a deleted image gets stuck in pending state","user":{"login":"2-4601","id":174176,"avatar_url":"https://avatars.githubusercontent.com/u/174176?v=3","gravatar_id":"","url":"https://api.github.com/users/2-4601","html_url":"https://github.com/2-4601","followers_url":"https://api.github.com/users/2-4601/followers","following_url":"https://api.github.com/users/2-4601/following{/other_user}","gists_url":"https://api.github.com/users/2-4601/gists{/gist_id}","starred_url":"https://api.github.com/users/2-4601/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2-4601/subscriptions","organizations_url":"https://api.github.com/users/2-4601/orgs","repos_url":"https://api.github.com/users/2-4601/repos","events_url":"https://api.github.com/users/2-4601/events{/privacy}","received_events_url":"https://api.github.com/users/2-4601/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/WhisperSystems/Signal-Android/labels/bug","name":"bug","color":"e10c02"}],"state":"closed","locked":false,"assignee":{"login":"mcginty","id":373823,"avatar_url":"https://avatars.githubusercontent.com/u/373823?v=3","gravatar_id":"","url":"https://api.github.com/users/mcginty","html_url":"https://github.com/mcginty","followers_url":"https://api.github.com/users/mcginty/followers","following_url":"https://api.github.com/users/mcginty/following{/other_user}","gists_url":"https://api.github.com/users/mcginty/gists{/gist_id}","starred_url":"https://api.github.com/users/mcginty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcginty/subscriptions","organizations_url":"https://api.github.com/users/mcginty/orgs","repos_url":"https://api.github.com/users/mcginty/repos","events_url":"https://api.github.com/users/mcginty/events{/privacy}","received_events_url":"https://api.github.com/users/mcginty/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/WhisperSystems/Signal-Android/milestones/63","html_url":"https://github.com/WhisperSystems/Signal-Android/milestones/3.4.0","labels_url":"https://api.github.com/repos/WhisperSystems/Signal-Android/milestones/63/labels","id":1391876,"number":63,"title":"3.4.0","description":null,"creator":{"login":"moxie0","id":512439,"avatar_url":"https://avatars.githubusercontent.com/u/512439?v=3","gravatar_id":"","url":"https://api.github.com/users/moxie0","html_url":"https://github.com/moxie0","followers_url":"https://api.github.com/users/moxie0/followers","following_url":"https://api.github.com/users/moxie0/following{/other_user}","gists_url":"https://api.github.com/users/moxie0/gists{/gist_id}","starred_url":"https://api.github.com/users/moxie0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moxie0/subscriptions","organizations_url":"https://api.github.com/users/moxie0/orgs","repos_url":"https://api.github.com/users/moxie0/repos","events_url":"https://api.github.com/users/moxie0/events{/privacy}","received_events_url":"https://api.github.com/users/moxie0/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":22,"state":"open","created_at":"2015-11-03T17:46:33Z","updated_at":"2015-11-12T19:44:29Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-04-24T01:35:27Z","updated_at":"2015-11-12T19:44:29Z","closed_at":"2015-11-12T19:44:29Z","body":"This came up in #3046 briefly.\r\n\r\nSometimes when you delete a picture it will leave around ghost thumbnails that are visible in the system gallery and also in TS attachment gallery. This can lead to the following issue if you try to send the deleted image:\r\n1. Delete a picture that's on your device with shell or a file manager (or create a ghost thumbnail in some other way)\r\n2. Attach that picture to a TS message using the attachment gallery's _Recent_ tab (the gallery does not know that the picture was deleted)\r\n3. You will get a missing thumbnail icon\r\n4. Tap send\r\n5. TS will create an \"empty\" message that gets stuck in a pending state for eternity\r\n\r\nIf you try to do the same in Google Hangouts you will get a 'Can't find picture' notification and you cannot send the image.\r\nTextSecure should also check if the file exists and not trust the gallery viewer.\r\n\r\n.gif demonstration:\r\n![output](https://cloud.githubusercontent.com/assets/174176/7310772/6e7ec4a2-ea3a-11e4-9159-6965298c8ab9.gif)\r\n\r\nTS 2.12.0, stock Android 5.1 and Android 4.0.4"},"comment":{"url":"https://api.github.com/repos/WhisperSystems/Signal-Android/issues/comments/156213425","html_url":"https://github.com/WhisperSystems/Signal-Android/issues/3053#issuecomment-156213425","issue_url":"https://api.github.com/repos/WhisperSystems/Signal-Android/issues/3053","id":156213425,"user":{"login":"moxie0","id":512439,"avatar_url":"https://avatars.githubusercontent.com/u/512439?v=3","gravatar_id":"","url":"https://api.github.com/users/moxie0","html_url":"https://github.com/moxie0","followers_url":"https://api.github.com/users/moxie0/followers","following_url":"https://api.github.com/users/moxie0/following{/other_user}","gists_url":"https://api.github.com/users/moxie0/gists{/gist_id}","starred_url":"https://api.github.com/users/moxie0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moxie0/subscriptions","organizations_url":"https://api.github.com/users/moxie0/orgs","repos_url":"https://api.github.com/users/moxie0/repos","events_url":"https://api.github.com/users/moxie0/events{/privacy}","received_events_url":"https://api.github.com/users/moxie0/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T19:44:29Z","updated_at":"2015-11-12T19:44:29Z","body":"in 3.4.0"}}