diff --git a/python/CHANGELOG b/python/CHANGELOG index 8fc0e027..7d89682c 100644 --- a/python/CHANGELOG +++ b/python/CHANGELOG @@ -1,3 +1,8 @@ +0.8.2 +----- + +- adapt to deleted and new event names + 0.8.1 ----- diff --git a/python/src/deltachat/__init__.py b/python/src/deltachat/__init__.py index a3bf7339..035bc4ef 100644 --- a/python/src/deltachat/__init__.py +++ b/python/src/deltachat/__init__.py @@ -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 = {} diff --git a/python/src/deltachat/account.py b/python/src/deltachat/account.py index 29262df2..ef3928cf 100644 --- a/python/src/deltachat/account.py +++ b/python/src/deltachat/account.py @@ -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) diff --git a/python/src/deltachat/const.py b/python/src/deltachat/const.py index a66ac847..56e993a9 100644 --- a/python/src/deltachat/const.py +++ b/python/src/deltachat/const.py @@ -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