mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-04 02:09:17 +02:00
adapt to new event names
This commit is contained in:
parent
1e04cc3aff
commit
b04ab5f7cd
4 changed files with 8 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
|||
0.8.2
|
||||
-----
|
||||
|
||||
- adapt to deleted and new event names
|
||||
|
||||
0.8.1
|
||||
-----
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ from deltachat import capi, const
|
|||
from deltachat.capi import ffi
|
||||
from deltachat.account import Account # noqa
|
||||
|
||||
__version__ = "0.8.1"
|
||||
__version__ = "0.8.2.dev1"
|
||||
|
||||
|
||||
_DC_CALLBACK_MAP = {}
|
||||
|
|
|
@ -384,7 +384,7 @@ class EventLogger:
|
|||
|
||||
def _log_event(self, evt_name, data1, data2):
|
||||
# don't show events that are anyway empty impls now
|
||||
if evt_name in ("DC_EVENT_GET_STRING", "DC_EVENT_IS_OFFLINE"):
|
||||
if evt_name in ("DC_EVENT_GET_STRING"):
|
||||
return
|
||||
if self._debug:
|
||||
evpart = "{}({!r},{!r})".format(evt_name, data1, data2)
|
||||
|
|
|
@ -38,7 +38,6 @@ DC_STATE_OUT_MDN_RCVD = 28
|
|||
DC_CONTACT_ID_SELF = 1
|
||||
DC_CONTACT_ID_DEVICE = 2
|
||||
DC_CONTACT_ID_LAST_SPECIAL = 9
|
||||
DC_MSG_UNDEFINED = 0
|
||||
DC_MSG_TEXT = 10
|
||||
DC_MSG_IMAGE = 20
|
||||
DC_MSG_GIF = 21
|
||||
|
@ -52,6 +51,7 @@ DC_EVENT_IMAP_CONNECTED = 102
|
|||
DC_EVENT_SMTP_MESSAGE_SENT = 103
|
||||
DC_EVENT_WARNING = 300
|
||||
DC_EVENT_ERROR = 400
|
||||
DC_EVENT_ERROR_NETWORK = 401
|
||||
DC_EVENT_MSGS_CHANGED = 2000
|
||||
DC_EVENT_INCOMING_MSG = 2005
|
||||
DC_EVENT_MSG_DELIVERED = 2010
|
||||
|
@ -62,12 +62,9 @@ DC_EVENT_CONTACTS_CHANGED = 2030
|
|||
DC_EVENT_CONFIGURE_PROGRESS = 2041
|
||||
DC_EVENT_IMEX_PROGRESS = 2051
|
||||
DC_EVENT_IMEX_FILE_WRITTEN = 2052
|
||||
DC_EVENT_FILE_COPIED = 2055
|
||||
DC_EVENT_SECUREJOIN_INVITER_PROGRESS = 2060
|
||||
DC_EVENT_SECUREJOIN_JOINER_PROGRESS = 2061
|
||||
DC_EVENT_IS_OFFLINE = 2081
|
||||
DC_EVENT_GET_STRING = 2091
|
||||
DC_EVENT_GET_QUANTITY_STRING = 2092
|
||||
DC_EVENT_HTTP_GET = 2100
|
||||
# end const generated
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue