Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2017-11-13 11:07:05 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2017-11-13 11:07:05 +0300
commitd14dbbf7d7516a5835317c95d25e317bcef39cb3 (patch)
tree824455bd7eb1bbf8dbbdb5dbbb4967adc48b401f
parent5dd82c2980a15f913df258d674355c72196abb4e (diff)
Only show the label as original sender
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
-rw-r--r--js/views/composerview.js2
-rw-r--r--js/views/messageview.js15
2 files changed, 2 insertions, 15 deletions
diff --git a/js/views/composerview.js b/js/views/composerview.js
index 2735b922b..87646a7ed 100644
--- a/js/views/composerview.js
+++ b/js/views/composerview.js
@@ -420,7 +420,7 @@ define(function(require) {
this.$('.message-body').first().text(
'\n\n\n' +
- from.email + ' – ' +
+ from.label + ' – ' +
$.datepicker.formatDate('D, d. MM yy ', date) +
date.getHours() + ':' + (minutes < 10 ? '0' : '') + minutes + '\n> ' +
text.replace(/\n/g, '\n> ')
diff --git a/js/views/messageview.js b/js/views/messageview.js
index ac3b85f05..3da3a21e9 100644
--- a/js/views/messageview.js
+++ b/js/views/messageview.js
@@ -39,19 +39,6 @@ define(function(require) {
attachments: '.mail-message-attachments'
},
- /**
- * @private
- * @param {type} email
- * @returns {undefined}
- */
- _formatAddress: function(address) {
- if (address.label === address.email) {
- return address.email;
- }
-
- return '"' + address.label + '" <' + address.email + '>';
- },
-
initialize: function(options) {
this.account = options.account;
this.folder = options.folder;
@@ -66,7 +53,7 @@ define(function(require) {
var text = HtmlHelper.htmlToText(this.messageBody.get('body'));
this.reply.body = '\n\n\n\n' +
- this._formatAddress(this.messageBody.get('from')[0]) + ' – ' +
+ this.messageBody.get('from')[0].label + ' – ' +
$.datepicker.formatDate('D, d. MM yy ', date) +
date.getHours() + ':' + (minutes < 10 ? '0' : '') + minutes + '\n> ' +
text.replace(/\n/g, '\n> ');