{"action":"opened","issue":{"url":"https://api.github.com/repos/Kandy-IO/kandy-phonegap/issues/3","labels_url":"https://api.github.com/repos/Kandy-IO/kandy-phonegap/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/Kandy-IO/kandy-phonegap/issues/3/comments","events_url":"https://api.github.com/repos/Kandy-IO/kandy-phonegap/issues/3/events","html_url":"https://github.com/Kandy-IO/kandy-phonegap/issues/3","id":69567546,"number":3,"title":"Missing contentType from chat details while calling Kandy.chat.sendChat","user":{"login":"primableatom","id":4652087,"avatar_url":"https://avatars.githubusercontent.com/u/4652087?v=3","gravatar_id":"","url":"https://api.github.com/users/primableatom","html_url":"https://github.com/primableatom","followers_url":"https://api.github.com/users/primableatom/followers","following_url":"https://api.github.com/users/primableatom/following{/other_user}","gists_url":"https://api.github.com/users/primableatom/gists{/gist_id}","starred_url":"https://api.github.com/users/primableatom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/primableatom/subscriptions","organizations_url":"https://api.github.com/users/primableatom/orgs","repos_url":"https://api.github.com/users/primableatom/repos","events_url":"https://api.github.com/users/primableatom/events{/privacy}","received_events_url":"https://api.github.com/users/primableatom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-20T11:34:58Z","updated_at":"2015-04-20T11:34:58Z","closed_at":null,"body":"I did a Kandy.chat.sendChat from the mobile app:\r\nKandy.chat.sendChat(\r\n                        function(){\r\n                            alert('message sent success');\r\n                        },\r\n                        function(e){\r\n                            alert(e);\r\n                        },\r\n                        'user1@anup.com',\r\n                        'customer needs help'\r\n                    );\r\n \r\nIn the web app upon doing KandyAPI.phone.getIm:\r\n\r\n  KandyAPI.Phone.getIm(function(data){\r\n    var message = data.messages[0];\r\n    console.log(message.contentType); // this is undefined\r\n\r\n    console.log(message);\r\n    // all the other details are their EXCEPT contentType\r\n    /**\r\n     Object {UUID: \"9FF4294E-2E41-45D2-98C9-77D1E147742C\", messageType: \"chat\", timestamp: 1429528904233, sender: Object, message: Object}\r\n     UUID: \"9FF4294E-2E41-45D2-98C9-77D1E147742C\"\r\n     message: Object\r\n     messageType: \"chat\"\r\n     sender: Object\r\n     timestamp: 1429528904233\r\n     **/    \r\n})\r\n\r\n"}}