mirror of
https://github.com/moparisthebest/mail
synced 2025-01-30 22:50:17 -05:00
Load bodies when changing folder without scrolling
This commit is contained in:
parent
fa1fbda11f
commit
df8b74bfb6
@ -204,10 +204,13 @@ define(function(require) {
|
||||
emailDao.openFolder({
|
||||
folder: currentFolder()
|
||||
}, function(error) {
|
||||
// dont wait until scroll to load visible mail bodies
|
||||
$scope.loadVisibleBodies();
|
||||
|
||||
// don't display error for offline case
|
||||
if (error && error.code === 42) {
|
||||
return;
|
||||
}
|
||||
|
||||
$scope.onError(error);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user