diff options
-rw-r--r-- | CHANGELOG.md | 2 | ||||
-rw-r--r-- | js/routecontroller.js | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 729eddadf..861c560ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,8 @@ All notable changes to this project will be documented in this file. [#1483](https://github.com/owncloud/mail/pull/1483) @ChristophWurst - Don't send messages in flowed text format [#1482](https://github.com/owncloud/mail/pull/1482) @ChristophWurst +- Show first folder of an account incase of invalid folder id + [#1471] (https://github.com/owncloud/mail/pull/1471) @tahaalibra ## 0.4.4 – 2016-05-06 diff --git a/js/routecontroller.js b/js/routecontroller.js index da2f95a74..9d6acd927 100644 --- a/js/routecontroller.js +++ b/js/routecontroller.js @@ -108,9 +108,8 @@ define(function(require) { var folder = account.get('folders').get(folderId); if (_.isUndefined(folder)) { - // TODO: show first folder of this account - _this.default(); - return; + folder = account.get('folders').at(0); + this._navigate('accounts/' + accountId + '/folders/' + folder.get('id')); } FolderController.showFolder(account, folder, noSelect); }, |