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:
authortahaa karim <tahaalibra@gmail.com>2016-05-03 17:01:44 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2016-05-10 22:07:27 +0300
commit0701389d6fe22fa745c95b5de7f6430251deb984 (patch)
tree945c12bdf9aa0ec8f7bab03d5ae57b85bb68f082
parent748fd49b053c6fe90ded9d10aa2b70b0d812ebf8 (diff)
show first folder of an account incase of invalid folde id
-rw-r--r--CHANGELOG.md2
-rw-r--r--js/routecontroller.js5
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);
},