{"action":"opened","issue":{"url":"https://api.github.com/repos/jcbrand/converse.js/issues/459","labels_url":"https://api.github.com/repos/jcbrand/converse.js/issues/459/labels{/name}","comments_url":"https://api.github.com/repos/jcbrand/converse.js/issues/459/comments","events_url":"https://api.github.com/repos/jcbrand/converse.js/issues/459/events","html_url":"https://github.com/jcbrand/converse.js/issues/459","id":104421250,"number":459,"title":"Wrong datatype passed to converse.chatboxes.getChatBox","user":{"login":"hobblegobber","id":9299876,"avatar_url":"https://avatars.githubusercontent.com/u/9299876?v=3","gravatar_id":"","url":"https://api.github.com/users/hobblegobber","html_url":"https://github.com/hobblegobber","followers_url":"https://api.github.com/users/hobblegobber/followers","following_url":"https://api.github.com/users/hobblegobber/following{/other_user}","gists_url":"https://api.github.com/users/hobblegobber/gists{/gist_id}","starred_url":"https://api.github.com/users/hobblegobber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hobblegobber/subscriptions","organizations_url":"https://api.github.com/users/hobblegobber/orgs","repos_url":"https://api.github.com/users/hobblegobber/repos","events_url":"https://api.github.com/users/hobblegobber/events{/privacy}","received_events_url":"https://api.github.com/users/hobblegobber/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-02T07:51:14Z","updated_at":"2015-09-02T07:51:14Z","closed_at":null,"body":"Hello,\r\n\r\nIn this line - https://github.com/jcbrand/converse.js/blob/master/converse.js#L6399\r\n\r\nA chatroom object is passed to converse.chatboxes.getChatBox function. The getChatBox function always expects a jid string as the first argument as defined here - https://github.com/jcbrand/converse.js/blob/master/converse.js#L3548\r\n\r\nThis leads to 'Uncaught TypeError: undefined is not a function' error. I have patched the code locally to pass the jid instead of the chatroom and it looks fine. Can this be fixed?\r\n\r\nThanks."}}