Skip to content

Instantly share code, notes, and snippets.

@chibenwa
Created July 2, 2019 04:26
Show Gist options
  • Save chibenwa/cd37204b834826bd884b7ce99a3cba9d to your computer and use it in GitHub Desktop.
Save chibenwa/cd37204b834826bd884b7ce99a3cba9d to your computer and use it in GitHub Desktop.
listThenGetMessages() {
const getMessageListCommandName = '#0';
const body = new BodyBuilder()
.appendGetMessageList({}, getMessageListCommandName)
.appendGetMessages({
"#ids": {
"resultOf": getMessageListCommandName,
"name": "getMessageList",
"path": "/messageIds"
}
}, '#1')
.getBody();
return this._jmapRequestWithMultipleCommands(body);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment