Update SendCommand.java

update a comment
This commit is contained in:
Vincent Toms 2019-02-21 16:12:03 -05:00 committed by GitHub
parent 567748858f
commit dc8daa3cd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,7 +89,7 @@ public class SendCommand implements DbusCommand {
}
// check to see if message is a JSON
// { "messageText": "string", "attachments": [ "base64" ] }
// { "message": "string", "attachments": [ "path to file", ... ] }
if (messageText.startsWith("{")) {
JsonSendableMessage result = new ObjectMapper().readValue(messageText, JsonSendableMessage.class);
messageText = result.getMessage();