{"action":"closed","issue":{"url":"https://api.github.com/repos/nylas/N1/issues/746","repository_url":"https://api.github.com/repos/nylas/N1","labels_url":"https://api.github.com/repos/nylas/N1/issues/746/labels{/name}","comments_url":"https://api.github.com/repos/nylas/N1/issues/746/comments","events_url":"https://api.github.com/repos/nylas/N1/issues/746/events","html_url":"https://github.com/nylas/N1/issues/746","id":122889331,"number":746,"title":"Prompt user when closing a New Message window before saving a draft","user":{"login":"fjarrett","id":522158,"avatar_url":"https://avatars.githubusercontent.com/u/522158?v=3","gravatar_id":"","url":"https://api.github.com/users/fjarrett","html_url":"https://github.com/fjarrett","followers_url":"https://api.github.com/users/fjarrett/followers","following_url":"https://api.github.com/users/fjarrett/following{/other_user}","gists_url":"https://api.github.com/users/fjarrett/gists{/gist_id}","starred_url":"https://api.github.com/users/fjarrett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fjarrett/subscriptions","organizations_url":"https://api.github.com/users/fjarrett/orgs","repos_url":"https://api.github.com/users/fjarrett/repos","events_url":"https://api.github.com/users/fjarrett/events{/privacy}","received_events_url":"https://api.github.com/users/fjarrett/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nylas/N1/labels/feature-request","name":"feature-request","color":"0052cc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-18T06:34:01Z","updated_at":"2016-04-14T20:06:10Z","closed_at":"2016-04-14T20:06:10Z","body":"When a user closes a New Message window in a dirty state, rather than automatically saving a new draft, they should be prompted to make a decision about what to do with the message:\r\n\r\n1. **Trash** - _Discard the message and close the window._\r\n2. **Cancel** - _Continue editing the message._\r\n3. **Save** - _Save the message as a draft and close the window._"}}