From ee629534d5245443152797bae81768680b5dda85 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 13 Nov 2013 23:10:29 -0800 Subject: E2EE on private mail (also fixed autocomplete results dropdown for recipient which was positioned below the navbar instead of next to the recipient input box) --- mod/message.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'mod') diff --git a/mod/message.php b/mod/message.php index c03875e24..f992a6fa1 100644 --- a/mod/message.php +++ b/mod/message.php @@ -212,6 +212,12 @@ function message_content(&$a) { $channel = $a->get_channel(); head_set_icon($channel['xchan_photo_s']); + $cipher = get_pconfig(local_user(),'system','default_cipher'); + if(! $cipher) + $cipher = 'aes256'; + + + $tpl = get_markup_template('mail_head.tpl'); $header = replace_macros($tpl, array( '$messages' => t('Messages'), @@ -328,6 +334,11 @@ function message_content(&$a) { '$defexpire' => '', '$feature_expire' => ((feature_enabled(local_user(),'content_expire')) ? 'block' : 'none'), '$expires' => t('Set expiration date'), + '$feature_encrypt' => ((feature_enabled(local_user(),'content_encrypt')) ? 'block' : 'none'), + '$encrypt' => t('Encrypt text'), + '$cipher' => $cipher, + + )); return $o; @@ -506,6 +517,10 @@ function message_content(&$a) { '$defexpire' => '', '$feature_expire' => ((feature_enabled(local_user(),'content_expire')) ? 'block' : 'none'), '$expires' => t('Set expiration date'), + '$feature_encrypt' => ((feature_enabled(local_user(),'content_encrypt')) ? 'block' : 'none'), + '$encrypt' => t('Encrypt text'), + '$cipher' => $cipher, + )); return $o; -- cgit v1.2.3