{"action":"created","issue":{"url":"https://api.github.com/repos/smooch/smooch-js/issues/140","labels_url":"https://api.github.com/repos/smooch/smooch-js/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/smooch/smooch-js/issues/140/comments","events_url":"https://api.github.com/repos/smooch/smooch-js/issues/140/events","html_url":"https://github.com/smooch/smooch-js/issues/140","id":120159229,"number":140,"title":"Undesired behavior: Smooch.updateUser opens the chat window","user":{"login":"pronav","id":734840,"avatar_url":"https://avatars.githubusercontent.com/u/734840?v=3","gravatar_id":"","url":"https://api.github.com/users/pronav","html_url":"https://github.com/pronav","followers_url":"https://api.github.com/users/pronav/followers","following_url":"https://api.github.com/users/pronav/following{/other_user}","gists_url":"https://api.github.com/users/pronav/gists{/gist_id}","starred_url":"https://api.github.com/users/pronav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pronav/subscriptions","organizations_url":"https://api.github.com/users/pronav/orgs","repos_url":"https://api.github.com/users/pronav/repos","events_url":"https://api.github.com/users/pronav/events{/privacy}","received_events_url":"https://api.github.com/users/pronav/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-03T12:21:51Z","updated_at":"2015-12-03T13:41:45Z","closed_at":null,"body":"Invoking `Smooch.updateUser` makes chat window open up as soon as promise is resolved. Though chat window doesn't seem to be \"fully\" in open state, as header needs to be clicked twice to make it close itself.\r\n\r\nTo produce, go to https://dashboard.razorpay.com and run `Smooch.updateUser({givenName: 'Hello World'})` in console.\r\n\r\nI've checked with my custom code removed, the bug is still there. Things work normally with old supportkit.min.js, so this should be recent."},"comment":{"url":"https://api.github.com/repos/smooch/smooch-js/issues/comments/161642743","html_url":"https://github.com/smooch/smooch-js/issues/140#issuecomment-161642743","issue_url":"https://api.github.com/repos/smooch/smooch-js/issues/140","id":161642743,"user":{"login":"lemieux","id":781844,"avatar_url":"https://avatars.githubusercontent.com/u/781844?v=3","gravatar_id":"","url":"https://api.github.com/users/lemieux","html_url":"https://github.com/lemieux","followers_url":"https://api.github.com/users/lemieux/followers","following_url":"https://api.github.com/users/lemieux/following{/other_user}","gists_url":"https://api.github.com/users/lemieux/gists{/gist_id}","starred_url":"https://api.github.com/users/lemieux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lemieux/subscriptions","organizations_url":"https://api.github.com/users/lemieux/orgs","repos_url":"https://api.github.com/users/lemieux/repos","events_url":"https://api.github.com/users/lemieux/events{/privacy}","received_events_url":"https://api.github.com/users/lemieux/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T13:41:45Z","updated_at":"2015-12-03T13:41:45Z","body":"@pronav I found the problem and I'll deploy a fix for it today. I'm surprised the behavior wasn't present with the supportkit.min.js package, that piece of code is there for a while now.\r\n\r\nAnyways.. fixed :)\r\n"}}