From 3faf88181d744be81d55f3aeb0798516ba93a5a5 Mon Sep 17 00:00:00 2001 From: Karissa McKelvey Date: Thu, 30 Aug 2018 17:23:13 -0700 Subject: [PATCH] add two new vars --- lot.js | 1 - message.js | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lot.js b/lot.js index d5d51261..5464f11e 100644 --- a/lot.js +++ b/lot.js @@ -12,7 +12,6 @@ class Lot { toJson () { return { - id: this.getId(), state: this.getState(), text1: this.getText1(), text1Meaning: this.getText1Meaning(), diff --git a/message.js b/message.js index 9ab2a91b..b9f67188 100644 --- a/message.js +++ b/message.js @@ -102,6 +102,7 @@ class Message { toJson () { return { + id: this.getId(), chatId: this.getChatId(), duration: this.getDuration(), fromId: this.getFromId(), @@ -110,6 +111,7 @@ class Message { type: binding.dcn_msg_get_type(this.dc_msg), state: binding.dcn_msg_get_state(this.dc_msg), summary: this.getSummary().toJson(), + isSetupmessage: this.isSetupmessage(), mediaInfo: this.getMediainfo().toJson(), file: this.getFile() }