{"action":"closed","issue":{"url":"https://api.github.com/repos/chen-ye/hubot-fb/issues/10","repository_url":"https://api.github.com/repos/chen-ye/hubot-fb","labels_url":"https://api.github.com/repos/chen-ye/hubot-fb/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/chen-ye/hubot-fb/issues/10/comments","events_url":"https://api.github.com/repos/chen-ye/hubot-fb/issues/10/events","html_url":"https://github.com/chen-ye/hubot-fb/issues/10","id":160674707,"number":10,"title":"rich message sent twice","user":{"login":"reinaldo422","id":4438261,"avatar_url":"https://avatars.githubusercontent.com/u/4438261?v=3","gravatar_id":"","url":"https://api.github.com/users/reinaldo422","html_url":"https://github.com/reinaldo422","followers_url":"https://api.github.com/users/reinaldo422/followers","following_url":"https://api.github.com/users/reinaldo422/following{/other_user}","gists_url":"https://api.github.com/users/reinaldo422/gists{/gist_id}","starred_url":"https://api.github.com/users/reinaldo422/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reinaldo422/subscriptions","organizations_url":"https://api.github.com/users/reinaldo422/orgs","repos_url":"https://api.github.com/users/reinaldo422/repos","events_url":"https://api.github.com/users/reinaldo422/events{/privacy}","received_events_url":"https://api.github.com/users/reinaldo422/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-16T14:24:43Z","updated_at":"2016-06-17T18:39:23Z","closed_at":"2016-06-17T18:39:23Z","body":"Getting a double message when calling `res.send('anything')` before constructing and sending a rich message. For example:\r\n\r\n```\r\nres.send('weather:');\r\nres.envelope.fb = { richMsg: ... };\r\nres.send();\r\n```\r\nresults in:\r\n```\r\nweather\r\nrichMsg\r\nrichMsg\r\n```\r\n\r\nAfter investigating further, it seems that the richMsg is piggybacking on the previous `res.send()` and then being sent again with the second.\r\n"}}
{"actor":{"display_login":"reinaldo422"}}