(js) Move to top when changing mailbox

pull/198/head
Francis Lachapelle 2016-02-08 15:43:02 -05:00
parent 5a408bf14b
commit 1c52093537
1 changed files with 3 additions and 1 deletions

View File

@ -207,8 +207,10 @@
mailbox = _find(stateAccount.$mailboxes);
if (mailbox)
if (mailbox) {
mailbox.$topIndex = 0;
return mailbox;
}
else
// Mailbox not found
return $state.go('mail.account.inbox');