diff --git a/src/js/controller/read.js b/src/js/controller/read.js index b93d21b..90aaac8 100644 --- a/src/js/controller/read.js +++ b/src/js/controller/read.js @@ -53,6 +53,8 @@ define(function(require) { mail.from.forEach(checkPublicKey); // display recipient security status mail.to.forEach(checkPublicKey); + // display recipient security status + Array.isArray(mail.cc) && mail.cc.forEach(checkPublicKey); }); function checkPublicKey(user) { diff --git a/src/js/controller/write.js b/src/js/controller/write.js index 8818522..691afc4 100644 --- a/src/js/controller/write.js +++ b/src/js/controller/write.js @@ -62,7 +62,9 @@ define(function(require) { $scope.writerTitle = 'Reply'; // fill recipient field - $scope.to[0].address = re.from[0].address; + $scope.to.unshift({ + address: re.from[0].address + }); // fill subject $scope.subject = 'Re: ' + ((re.subject) ? re.subject.replace('Re: ', '') : ''); diff --git a/src/tpl/read.html b/src/tpl/read.html index bcaefe1..ca2dbf9 100644 --- a/src/tpl/read.html +++ b/src/tpl/read.html @@ -16,7 +16,7 @@

- CC: {{u.name || u.address}} + Cc: {{u.name || u.address}}

diff --git a/src/tpl/write.html b/src/tpl/write.html index 99e33bc..9f76f5f 100644 --- a/src/tpl/write.html +++ b/src/tpl/write.html @@ -19,12 +19,6 @@

-

- Bcc: - - - -