mirror of
https://github.com/moparisthebest/mail
synced 2025-01-31 07:00: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({
|
emailDao.openFolder({
|
||||||
folder: currentFolder()
|
folder: currentFolder()
|
||||||
}, function(error) {
|
}, 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) {
|
if (error && error.code === 42) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.onError(error);
|
$scope.onError(error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user