mirror of
https://github.com/chatmail/core.git
synced 2026-04-06 07:32:12 +03:00
* Add DC_EVENT_INCOMING_MSG event
* Fix lots of compile errors
* Docs
* Changelog
* Fix python tests
Adding DC_EVENT_INCOMING_MSG_BUNCH made the python tests fail because they use `get_matching("DC_EVENT_INCOMING_MSG")`, which also matches DC_EVENT_INCOMING_MSG_BUNCH, so the tests got confused.
This fixes `get_matching()` to only match whole event names.
* Also fix test_ac_setup_message_twice()
The built regex was ^EVENT_NAME1|EVENT_NAME2$, which becomes parsed as
"^EVENT_NAME1" OR "EVENT_NAME2$". Introduce a group (parentheses) to fix
this.
* desktop will use DC_EVENT_INCOMING_MSG_BUNCH,
so I would not call it experimental anymore
* add generated node constants
* msg_ids in the event as Vec<u32>
number[] in js land
this is way more convinient than a json encoded string.
* Apply suggestions from code review
Co-authored-by: bjoern <r10s@b44t.com>
Co-authored-by: Simon Laux <mobile.info@simonlaux.de>
Co-authored-by: Simon Laux <Simon-Laux@users.noreply.github.com>
Co-authored-by: bjoern <r10s@b44t.com>
38 lines
1.2 KiB
JavaScript
38 lines
1.2 KiB
JavaScript
/* eslint-disable quotes */
|
|
// Generated!
|
|
|
|
module.exports = {
|
|
100: 'DC_EVENT_INFO',
|
|
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',
|
|
410: 'DC_EVENT_ERROR_SELF_NOT_IN_GROUP',
|
|
2000: 'DC_EVENT_MSGS_CHANGED',
|
|
2001: 'DC_EVENT_REACTIONS_CHANGED',
|
|
2005: 'DC_EVENT_INCOMING_MSG',
|
|
2006: 'DC_EVENT_INCOMING_MSG_BUNCH',
|
|
2008: 'DC_EVENT_MSGS_NOTICED',
|
|
2010: 'DC_EVENT_MSG_DELIVERED',
|
|
2012: 'DC_EVENT_MSG_FAILED',
|
|
2015: 'DC_EVENT_MSG_READ',
|
|
2020: 'DC_EVENT_CHAT_MODIFIED',
|
|
2021: 'DC_EVENT_CHAT_EPHEMERAL_TIMER_MODIFIED',
|
|
2030: 'DC_EVENT_CONTACTS_CHANGED',
|
|
2035: 'DC_EVENT_LOCATION_CHANGED',
|
|
2041: 'DC_EVENT_CONFIGURE_PROGRESS',
|
|
2051: 'DC_EVENT_IMEX_PROGRESS',
|
|
2052: 'DC_EVENT_IMEX_FILE_WRITTEN',
|
|
2060: 'DC_EVENT_SECUREJOIN_INVITER_PROGRESS',
|
|
2061: 'DC_EVENT_SECUREJOIN_JOINER_PROGRESS',
|
|
2100: 'DC_EVENT_CONNECTIVITY_CHANGED',
|
|
2110: 'DC_EVENT_SELFAVATAR_CHANGED',
|
|
2120: 'DC_EVENT_WEBXDC_STATUS_UPDATE',
|
|
2121: 'DC_EVENT_WEBXDC_INSTANCE_DELETED'
|
|
}
|