{"action":"opened","issue":{"url":"https://api.github.com/repos/jcbrand/converse.js/issues/612","repository_url":"https://api.github.com/repos/jcbrand/converse.js","labels_url":"https://api.github.com/repos/jcbrand/converse.js/issues/612/labels{/name}","comments_url":"https://api.github.com/repos/jcbrand/converse.js/issues/612/comments","events_url":"https://api.github.com/repos/jcbrand/converse.js/issues/612/events","html_url":"https://github.com/jcbrand/converse.js/issues/612","id":141219101,"number":612,"title":"Error when overrides function sendPresence","user":{"login":"docaohuynh","id":1791817,"avatar_url":"https://avatars.githubusercontent.com/u/1791817?v=3","gravatar_id":"","url":"https://api.github.com/users/docaohuynh","html_url":"https://github.com/docaohuynh","followers_url":"https://api.github.com/users/docaohuynh/followers","following_url":"https://api.github.com/users/docaohuynh/following{/other_user}","gists_url":"https://api.github.com/users/docaohuynh/gists{/gist_id}","starred_url":"https://api.github.com/users/docaohuynh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docaohuynh/subscriptions","organizations_url":"https://api.github.com/users/docaohuynh/orgs","repos_url":"https://api.github.com/users/docaohuynh/repos","events_url":"https://api.github.com/users/docaohuynh/events{/privacy}","received_events_url":"https://api.github.com/users/docaohuynh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-16T09:42:24Z","updated_at":"2016-03-16T09:42:24Z","closed_at":null,"body":"Dear jcbrand!\r\n\r\nWhen I write plugin like this \r\n[converse-js-plugin](https://conversejs.org/docs/html/development.html#writing-a-converse-js-plugin)\r\nBut It show error\r\n```\r\nTypeError: this.constructPresence is not a function\r\nconverse.connection.send(this.constructPresence(type, status_message));\r\n```\r\n\r\nSo What's wrong with this code\r\nTks!"}}