From 56cd875fbd365232fc6410e494a2e0c4d7d077fa Mon Sep 17 00:00:00 2001 From: Simon Laux Date: Mon, 12 Sep 2022 19:39:41 +0200 Subject: [PATCH] update node constants, follow up to #3592 (#3593) update node constants, this was forgotten in #3592 not a big deal as these are generated on building node, so this is just a simple commit of these files after running `npm run build` --- node/constants.js | 1 + node/events.js | 3 ++- node/lib/constants.ts | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/node/constants.js b/node/constants.js index 98808168c..3ec594460 100644 --- a/node/constants.js +++ b/node/constants.js @@ -56,6 +56,7 @@ module.exports = { DC_EVENT_SMTP_CONNECTED: 101, DC_EVENT_SMTP_MESSAGE_SENT: 103, DC_EVENT_WARNING: 300, + DC_EVENT_WEBXDC_INSTANCE_DELETED: 2121, DC_EVENT_WEBXDC_STATUS_UPDATE: 2120, DC_GCL_ADD_ALLDONE_HINT: 4, DC_GCL_ADD_SELF: 2, diff --git a/node/events.js b/node/events.js index 5a04bc916..58d13f531 100644 --- a/node/events.js +++ b/node/events.js @@ -30,5 +30,6 @@ module.exports = { 2061: 'DC_EVENT_SECUREJOIN_JOINER_PROGRESS', 2100: 'DC_EVENT_CONNECTIVITY_CHANGED', 2110: 'DC_EVENT_SELFAVATAR_CHANGED', - 2120: 'DC_EVENT_WEBXDC_STATUS_UPDATE' + 2120: 'DC_EVENT_WEBXDC_STATUS_UPDATE', + 2121: 'DC_EVENT_WEBXDC_INSTANCE_DELETED' } diff --git a/node/lib/constants.ts b/node/lib/constants.ts index 3dbc60048..1fa423d85 100644 --- a/node/lib/constants.ts +++ b/node/lib/constants.ts @@ -56,6 +56,7 @@ export enum C { DC_EVENT_SMTP_CONNECTED = 101, DC_EVENT_SMTP_MESSAGE_SENT = 103, DC_EVENT_WARNING = 300, + DC_EVENT_WEBXDC_INSTANCE_DELETED = 2121, DC_EVENT_WEBXDC_STATUS_UPDATE = 2120, DC_GCL_ADD_ALLDONE_HINT = 4, DC_GCL_ADD_SELF = 2, @@ -297,4 +298,5 @@ export const EventId2EventName: { [key: number]: string } = { 2100: 'DC_EVENT_CONNECTIVITY_CHANGED', 2110: 'DC_EVENT_SELFAVATAR_CHANGED', 2120: 'DC_EVENT_WEBXDC_STATUS_UPDATE', + 2121: 'DC_EVENT_WEBXDC_INSTANCE_DELETED', }