{"action":"created","issue":{"url":"https://api.github.com/repos/intercom/intercom-android/issues/352","repository_url":"https://api.github.com/repos/intercom/intercom-android","labels_url":"https://api.github.com/repos/intercom/intercom-android/issues/352/labels{/name}","comments_url":"https://api.github.com/repos/intercom/intercom-android/issues/352/comments","events_url":"https://api.github.com/repos/intercom/intercom-android/issues/352/events","html_url":"https://github.com/intercom/intercom-android/issues/352","id":230739027,"number":352,"title":"Auto messages being sent twice","user":{"login":"JaerenMoneyBox","id":16168351,"avatar_url":"https://avatars0.githubusercontent.com/u/16168351?v=3","gravatar_id":"","url":"https://api.github.com/users/JaerenMoneyBox","html_url":"https://github.com/JaerenMoneyBox","followers_url":"https://api.github.com/users/JaerenMoneyBox/followers","following_url":"https://api.github.com/users/JaerenMoneyBox/following{/other_user}","gists_url":"https://api.github.com/users/JaerenMoneyBox/gists{/gist_id}","starred_url":"https://api.github.com/users/JaerenMoneyBox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JaerenMoneyBox/subscriptions","organizations_url":"https://api.github.com/users/JaerenMoneyBox/orgs","repos_url":"https://api.github.com/users/JaerenMoneyBox/repos","events_url":"https://api.github.com/users/JaerenMoneyBox/events{/privacy}","received_events_url":"https://api.github.com/users/JaerenMoneyBox/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-05-23T14:58:56Z","updated_at":"2017-05-24T16:55:55Z","closed_at":null,"body":"## Version info\r\n  - Intercom for Android version: 3.2.2\r\n  - Android OS version: 7.1.1 (but isn't version specific)\r\n  - Android Device: Android emulator Nexus 5x\r\n\r\n## Expected behavior\r\n\r\nWe have an intercom user auto message to be sent after a user sets up a pin lock on their account for the first time, using the event submitted_pin, immediately after this the user is sent to another screen where we send another event called account_viewed that has no auto messages attached to it.  \r\n\r\nWhat we would like to happen is for the message to only be shown once after the user submits their pin and when they land on the next screen.\r\n\r\n## Actual behavior\r\n\r\nAfter we send both these events and the user lands on the second screen the user is shown two auto messages.  After the user dismisses the first one, they are still shown the same message and have to dismiss the second one.\r\n\r\nHowever we do not see this behaviour if we remove the \"account_viewed\" event, or if we set the auto message to be fired on the \"account_viewed\" event (i.e. the second event).\r\n\r\n## Steps to reproduce\r\n 1. Identify anonymous user - Intercom.client().registerUnidentifiedUser();\r\n 2. User logs in - Intercom.client().registerIdentifiedUser(Registration.create().withUserId(userId));\r\n 3. Go to first screen (create pin)\r\n 4. Create pin - Intercom.client().logEvent(\"submitted_pin\");\r\n 5. Go to second screen - Intercom.client().logEvent(\"account_viewed\");\r\n 6. While still on the second screen we are shown two auto messages.\r\n\r\n## Logs"},"comment":{"url":"https://api.github.com/repos/intercom/intercom-android/issues/comments/303785863","html_url":"https://github.com/intercom/intercom-android/issues/352#issuecomment-303785863","issue_url":"https://api.github.com/repos/intercom/intercom-android/issues/352","id":303785863,"user":{"login":"chuen-mb","id":13416367,"avatar_url":"https://avatars3.githubusercontent.com/u/13416367?v=3","gravatar_id":"","url":"https://api.github.com/users/chuen-mb","html_url":"https://github.com/chuen-mb","followers_url":"https://api.github.com/users/chuen-mb/followers","following_url":"https://api.github.com/users/chuen-mb/following{/other_user}","gists_url":"https://api.github.com/users/chuen-mb/gists{/gist_id}","starred_url":"https://api.github.com/users/chuen-mb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chuen-mb/subscriptions","organizations_url":"https://api.github.com/users/chuen-mb/orgs","repos_url":"https://api.github.com/users/chuen-mb/repos","events_url":"https://api.github.com/users/chuen-mb/events{/privacy}","received_events_url":"https://api.github.com/users/chuen-mb/received_events","type":"User","site_admin":false},"created_at":"2017-05-24T16:55:55Z","updated_at":"2017-05-24T16:55:55Z","body":"+1 "}}
{"actor":{"display_login":"chuen-mb"}}