Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
fix #384 (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpk42 authored and Jikstra committed Oct 5, 2019
1 parent ed27196 commit a5b19ff
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ module.exports = {
DC_EVENT_SECUREJOIN_JOINER_PROGRESS: 2061,
DC_EVENT_SMTP_CONNECTED: 101,
DC_EVENT_SMTP_MESSAGE_SENT: 103,
DC_EVENT_IMAP_MESSAGE_DELETED: 104,
DC_EVENT_IMAP_MESSAGE_MOVED: 105,
DC_EVENT_NEW_BLOB_FILE: 150,
DC_EVENT_DELETED_BLOB_FILE: 151,
DC_EVENT_WARNING: 300,
DC_GCL_ADD_ALLDONE_HINT: 4,
DC_GCL_ADD_SELF: 2,
Expand Down
4 changes: 4 additions & 0 deletions events.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ module.exports = {
101: 'DC_EVENT_SMTP_CONNECTED',
102: 'DC_EVENT_IMAP_CONNECTED',
103: 'DC_EVENT_SMTP_MESSAGE_SENT',
104: 'DC_EVENT_IMAP_MESSAGE_DELETED',
105: 'DC_EVENT_IMAP_MESSAGE_MOVED',
150: 'DC_EVENT_NEW_BLOB_FILE',
151: 'DC_EVENT_DELETED_BLOB_FILE',
300: 'DC_EVENT_WARNING',
400: 'DC_EVENT_ERROR',
401: 'DC_EVENT_ERROR_NETWORK',
Expand Down
12 changes: 12 additions & 0 deletions lib/deltachat.js
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,18 @@ function handleEvent (self, event, data1, data2) {
case 'DC_EVENT_SMTP_MESSAGE_SENT': // 103
self.emit(eventStr, data2)
break
case 'DC_EVENT_IMAP_MESSAGE_DELETED': // 104
self.emit(eventStr, data2)
break
case 'DC_EVENT_IMAP_MESSAGE_MOVED': // 105
self.emit(eventStr, data2)
break
case 'DC_EVENT_NEW_BLOB_FILE': // 150
self.emit(eventStr, data2)
break
case 'DC_EVENT_DELETED_BLOB_FILE': // 151
self.emit(eventStr, data2)
break
case 'DC_EVENT_WARNING': // 300
self.emit(eventStr, data2)
break
Expand Down

0 comments on commit a5b19ff

Please sign in to comment.