Description
(Spin-off from SHINDIG-1951 containing only the fixes to #createMessage(), without the API change)
Calling #createMessage() leads to errors like this:
org.apache.shindig.protocol.ProtocolException: JSONObject["jane.doe"] is not a JSONArray. at org.json.JSONObject.getJSONArray(JSONObject.java:502) at org.apache.shindig.social.sample.spi.JsonDbOpensocialService.createMessage(JsonDbOpensocialService.java:621)
Message msg = new MessageImpl(); msg.setBody("Hello"); msg.setRecipients(Collections.singletonList(JANE_DOE.getUserId())); db.createMessage(JOHN_DOE, APP_ID, "privateMessage", msg, token).get();
Attachments
Issue Links
- is required by
-
SHINDIG-1951 Return the message id when a new message is posted for a user
- Patch Available