Skip to content

Commit

Permalink
refreshMailbox should never be done unless on mailbox page
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Mar 11, 2014
1 parent 0d88aa4 commit 3214264
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions imp/js/smartmobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,9 +374,7 @@ var ImpMobile = {
if (IMP.conf.refresh_time) {
window.clearInterval(ImpMobile.refresh);
ImpMobile.refresh = window.setInterval(function() {
if (HordeMobile.currentPage() == 'mailbox') {
ImpMobile.refreshMailbox();
}
ImpMobile.refreshMailbox();
}, IMP.conf.refresh_time * 1000);
}
break;
Expand Down Expand Up @@ -514,9 +512,7 @@ var ImpMobile = {
ob.disappear(r.disappear);
}

if (HordeMobile.currentPage() == 'mailbox') {
ImpMobile.refreshMailbox(ob);
}
ImpMobile.refreshMailbox(ob);
},

/**
Expand All @@ -525,6 +521,10 @@ var ImpMobile = {
*/
refreshMailbox: function(ob)
{
if (HordeMobile.currentPage() == 'mailbox') {
return;
}

if (!ob) {
HordeMobile.doAction(
'viewPort',
Expand Down

0 comments on commit 3214264

Please sign in to comment.