diff --git a/node/constants.js b/node/constants.js index 3c8816502..d55d92782 100644 --- a/node/constants.js +++ b/node/constants.js @@ -48,6 +48,7 @@ module.exports = { DC_EVENT_LOCATION_CHANGED: 2035, DC_EVENT_MSGS_CHANGED: 2000, DC_EVENT_MSGS_NOTICED: 2008, + DC_EVENT_MSG_DELETED: 2016, DC_EVENT_MSG_DELIVERED: 2010, DC_EVENT_MSG_FAILED: 2012, DC_EVENT_MSG_READ: 2015, diff --git a/node/events.js b/node/events.js index d27fd1829..5a24586a2 100644 --- a/node/events.js +++ b/node/events.js @@ -22,6 +22,7 @@ module.exports = { 2010: 'DC_EVENT_MSG_DELIVERED', 2012: 'DC_EVENT_MSG_FAILED', 2015: 'DC_EVENT_MSG_READ', + 2016: 'DC_EVENT_MSG_DELETED', 2020: 'DC_EVENT_CHAT_MODIFIED', 2021: 'DC_EVENT_CHAT_EPHEMERAL_TIMER_MODIFIED', 2030: 'DC_EVENT_CONTACTS_CHANGED', diff --git a/node/lib/constants.ts b/node/lib/constants.ts index 8b6a61ebb..cacbd570d 100644 --- a/node/lib/constants.ts +++ b/node/lib/constants.ts @@ -48,6 +48,7 @@ export enum C { DC_EVENT_LOCATION_CHANGED = 2035, DC_EVENT_MSGS_CHANGED = 2000, DC_EVENT_MSGS_NOTICED = 2008, + DC_EVENT_MSG_DELETED = 2016, DC_EVENT_MSG_DELIVERED = 2010, DC_EVENT_MSG_FAILED = 2012, DC_EVENT_MSG_READ = 2015, @@ -307,6 +308,7 @@ export const EventId2EventName: { [key: number]: string } = { 2010: 'DC_EVENT_MSG_DELIVERED', 2012: 'DC_EVENT_MSG_FAILED', 2015: 'DC_EVENT_MSG_READ', + 2016: 'DC_EVENT_MSG_DELETED', 2020: 'DC_EVENT_CHAT_MODIFIED', 2021: 'DC_EVENT_CHAT_EPHEMERAL_TIMER_MODIFIED', 2030: 'DC_EVENT_CONTACTS_CHANGED',