From 72b36d84455d2471e2a6138a823d5e37ae115c2a Mon Sep 17 00:00:00 2001 From: iequidoo Date: Wed, 5 Jun 2024 22:25:59 -0300 Subject: [PATCH] feat(ffi): Add DC_STR_CANT_DECRYPT_OUTGOING_MSGS define --- deltachat-ffi/deltachat.h | 6 ++++++ node/constants.js | 1 + node/lib/constants.ts | 1 + 3 files changed, 8 insertions(+) diff --git a/deltachat-ffi/deltachat.h b/deltachat-ffi/deltachat.h index c062fef84e..f334b7f97d 100644 --- a/deltachat-ffi/deltachat.h +++ b/deltachat-ffi/deltachat.h @@ -7480,6 +7480,12 @@ void dc_event_unref(dc_event_t* event); /// `%1$s` will be replaced by the provider's domain. #define DC_STR_INVALID_UNENCRYPTED_MAIL 174 +/// "⚠️ It seems you are using Delta Chat on multiple devices that cannot decrypt each other's outgoing messages. To fix this, on the older device use \"Settings / Add Second Device\" and follow the instructions." +/// +/// Added to the device chat if could not decrypt a new outgoing message (i.e. not when fetching +/// existing messages). But no more than once a day. +#define DC_STR_CANT_DECRYPT_OUTGOING_MSGS 175 + /// "You reacted %1$s to '%2$s'" /// /// `%1$s` will be replaced by the reaction, usually an emoji diff --git a/node/constants.js b/node/constants.js index c96684fa91..cac6ca2123 100644 --- a/node/constants.js +++ b/node/constants.js @@ -179,6 +179,7 @@ module.exports = { DC_STR_BROADCAST_LIST: 115, DC_STR_CANNOT_LOGIN: 60, DC_STR_CANTDECRYPT_MSG_BODY: 29, + DC_STR_CANT_DECRYPT_OUTGOING_MSGS: 175, DC_STR_CHAT_PROTECTION_DISABLED: 171, DC_STR_CHAT_PROTECTION_ENABLED: 170, DC_STR_CONFIGURATION_FAILED: 84, diff --git a/node/lib/constants.ts b/node/lib/constants.ts index 6c58016163..a40ea2b86a 100644 --- a/node/lib/constants.ts +++ b/node/lib/constants.ts @@ -179,6 +179,7 @@ export enum C { DC_STR_BROADCAST_LIST = 115, DC_STR_CANNOT_LOGIN = 60, DC_STR_CANTDECRYPT_MSG_BODY = 29, + DC_STR_CANT_DECRYPT_OUTGOING_MSGS = 175, DC_STR_CHAT_PROTECTION_DISABLED = 171, DC_STR_CHAT_PROTECTION_ENABLED = 170, DC_STR_CONFIGURATION_FAILED = 84,