Skip to content

Commit 1f7b4a7

Browse files
committed
add missing 'unencrypted message' defines
in #5161, it was forgotten to adapt deltachat.h; moreover, this PR tweaks some other minor things
1 parent 4bc9070 commit 1f7b4a7

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

deltachat-ffi/deltachat.h

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4397,6 +4397,9 @@ int dc_msg_is_info (const dc_msg_t* msg);
43974397
* Currently, the following types are defined:
43984398
* - DC_INFO_PROTECTION_ENABLED (11) - Info-message for "Chat is now protected"
43994399
* - DC_INFO_PROTECTION_DISABLED (12) - Info-message for "Chat is no longer protected"
4400+
* - DC_INFO_INVALID_UNENCRYPTED_MAIL (13) - Info-message for "Provider requires end-to-end encryption which is not setup yet",
4401+
* the UI should change the corresponding string using #DC_STR_INVALID_UNENCRYPTED_MAIL
4402+
* and also offer a way to fix the encryption, eg. by a button offering a QR scan
44004403
*
44014404
* Even when you display an icon,
44024405
* you should still display the text of the informational message using dc_msg_get_text()
@@ -4423,6 +4426,7 @@ int dc_msg_get_info_type (const dc_msg_t* msg);
44234426
#define DC_INFO_EPHEMERAL_TIMER_CHANGED 10
44244427
#define DC_INFO_PROTECTION_ENABLED 11
44254428
#define DC_INFO_PROTECTION_DISABLED 12
4429+
#define DC_INFO_INVALID_UNENCRYPTED_MAIL 13
44264430
#define DC_INFO_WEBXDC_INFO_MESSAGE 32
44274431

44284432
/**
@@ -7010,6 +7014,8 @@ void dc_event_unref(dc_event_t* event);
70107014
/// "You added member %1$s."
70117015
///
70127016
/// Used in status messages.
7017+
///
7018+
/// `%1$s` will be replaced by the added member's name.
70137019
#define DC_STR_ADD_MEMBER_BY_YOU 128
70147020

70157021
/// "Member %1$s added by %2$s."
@@ -7231,6 +7237,21 @@ void dc_event_unref(dc_event_t* event);
72317237
/// Used as the first info messages in newly created groups.
72327238
#define DC_STR_NEW_GROUP_SEND_FIRST_MESSAGE 172
72337239

7240+
/// "Member %1$s added."
7241+
///
7242+
/// Used as info messages.
7243+
///
7244+
/// `%1$s` will be replaced by the added member's name.
7245+
#define DC_STR_MESSAGE_ADD_MEMBER 173
7246+
7247+
/// "Your email provider %1$s requires end-to-end encryption which is not setup yet."
7248+
///
7249+
/// Used as info messages when a message cannot be sent because it cannot be encrypted.
7250+
///
7251+
/// `%1$s` will be replaced by the provider's domain.
7252+
#define DC_STR_INVALID_UNENCRYPTED_MAIL 174
7253+
7254+
72347255
/**
72357256
* @}
72367257
*/

0 commit comments

Comments
 (0)