mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-23 19:04:18 +00:00
fix(mail(js)): don't poll server from popup windows
This commit is contained in:
@@ -50,14 +50,16 @@
|
||||
// Listen to HTTP errors broadcasted from HTTP interceptor
|
||||
$rootScope.$on('http:Error', onHttpError);
|
||||
|
||||
if (sgSettings.activeUser('path').calendar) {
|
||||
// Fetch Calendar alarms
|
||||
Preferences.getAlarms();
|
||||
}
|
||||
if (!isPopup) {
|
||||
if (sgSettings.activeUser('path').calendar) {
|
||||
// Fetch Calendar alarms
|
||||
Preferences.getAlarms();
|
||||
}
|
||||
|
||||
if (sgSettings.activeUser('path').mail) {
|
||||
// Poll inbox for new messages
|
||||
Preferences.pollInbox();
|
||||
if (sgSettings.activeUser('path').mail) {
|
||||
// Poll inbox for new messages
|
||||
Preferences.pollInbox();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user