diff --git a/deltachat-ffi/deltachat.h b/deltachat-ffi/deltachat.h index 737d614fd..ea1a7ccdc 100644 --- a/deltachat-ffi/deltachat.h +++ b/deltachat-ffi/deltachat.h @@ -4580,15 +4580,18 @@ int dc_msg_has_html (dc_msg_t* msg); * if they are larger than the limit set by the dc_set_config()-option `download_limit`. * * The function returns one of: - * - @ref DC_DOWNLOAD_DONE - The message does not need any further download action - * and should be rendered as usual. - * - @ref DC_DOWNLOAD_AVAILABLE - There is additional content to download. - * In addition to the usual message rendering, - * the UI shall show a download button that calls dc_download_full_msg() - * - @ref DC_DOWNLOAD_IN_PROGRESS - Download was started with dc_download_full_msg() and is still in progress. - * If the download fails or succeeds, - * the event @ref DC_EVENT_MSGS_CHANGED is emitted. - * - @ref DC_DOWNLOAD_FAILURE - Download error, the user may start over calling dc_download_full_msg() again. + * - @ref DC_DOWNLOAD_DONE - The message does not need any further download action + * and should be rendered as usual. + * - @ref DC_DOWNLOAD_AVAILABLE - There is additional content to download. + * In addition to the usual message rendering, + * the UI shall show a download button that calls dc_download_full_msg() + * - @ref DC_DOWNLOAD_IN_PROGRESS - Download was started with dc_download_full_msg() and is still in progress. + * If the download fails or succeeds, + * the event @ref DC_EVENT_MSGS_CHANGED is emitted. + * + * - @ref DC_DOWNLOAD_UNDECIPHERABLE - The message does not need any futher download action. + * It was fully downloaded, but we failed to decrypt it. + * - @ref DC_DOWNLOAD_FAILURE - Download error, the user may start over calling dc_download_full_msg() again. * * @memberof dc_msg_t * @param msg The message object. @@ -6433,22 +6436,27 @@ void dc_event_unref(dc_event_t* event); /** * Download not needed, see dc_msg_get_download_state() for details. */ -#define DC_DOWNLOAD_DONE 0 +#define DC_DOWNLOAD_DONE 0 /** * Download available, see dc_msg_get_download_state() for details. */ -#define DC_DOWNLOAD_AVAILABLE 10 +#define DC_DOWNLOAD_AVAILABLE 10 /** * Download failed, see dc_msg_get_download_state() for details. */ -#define DC_DOWNLOAD_FAILURE 20 +#define DC_DOWNLOAD_FAILURE 20 + +/** + * Download not needed, see dc_msg_get_download_state() for details. + */ +#define DC_DOWNLOAD_UNDECIPHERABLE 30 /** * Download in progress, see dc_msg_get_download_state() for details. */ -#define DC_DOWNLOAD_IN_PROGRESS 1000 +#define DC_DOWNLOAD_IN_PROGRESS 1000 diff --git a/node/constants.js b/node/constants.js index 3da36a27c..f6efbe290 100644 --- a/node/constants.js +++ b/node/constants.js @@ -28,6 +28,7 @@ module.exports = { DC_DOWNLOAD_DONE: 0, DC_DOWNLOAD_FAILURE: 20, DC_DOWNLOAD_IN_PROGRESS: 1000, + DC_DOWNLOAD_UNDECIPHERABLE: 30, DC_EVENT_CHAT_EPHEMERAL_TIMER_MODIFIED: 2021, DC_EVENT_CHAT_MODIFIED: 2020, DC_EVENT_CONFIGURE_PROGRESS: 2041, diff --git a/node/lib/constants.ts b/node/lib/constants.ts index ba5a2ed49..d4df49102 100644 --- a/node/lib/constants.ts +++ b/node/lib/constants.ts @@ -28,6 +28,7 @@ export enum C { DC_DOWNLOAD_DONE = 0, DC_DOWNLOAD_FAILURE = 20, DC_DOWNLOAD_IN_PROGRESS = 1000, + DC_DOWNLOAD_UNDECIPHERABLE = 30, DC_EVENT_CHAT_EPHEMERAL_TIMER_MODIFIED = 2021, DC_EVENT_CHAT_MODIFIED = 2020, DC_EVENT_CONFIGURE_PROGRESS = 2041,