From 433a151207c4fa9a68c8b0ef2a99b9068a55d172 Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Thu, 12 Sep 2013 00:28:24 +0200 Subject: [PATCH] display email address in from header if name is not set --- src/js/controller/message-list.js | 1 + src/tpl/read.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/controller/message-list.js b/src/js/controller/message-list.js index c705b8e..73508ae 100644 --- a/src/js/controller/message-list.js +++ b/src/js/controller/message-list.js @@ -34,6 +34,7 @@ define(function(require) { if (window.chrome && window.chrome.identity) { fetchList(function(emails) { $scope.emails = emails; + $scope.select($scope.emails[0]); $scope.$apply(); }); return; diff --git a/src/tpl/read.html b/src/tpl/read.html index 8a8fa3f..796e883 100644 --- a/src/tpl/read.html +++ b/src/tpl/read.html @@ -17,7 +17,7 @@

{{selected.longDisplayDate}}

-

From: {{selected.from[0].name}}

+

From: {{selected.from[0].name || selected.from[0].address}}

To: {{t.address}}