increment notification counter on (closed) mail tab

This commit is contained in:
Ralf Becker 2020-07-24 19:13:11 +02:00
parent 6007fb5363
commit a350f6a871

View File

@ -403,6 +403,9 @@ app.classes.mail = AppJS.extend(
if (pushData.type === 'add')
{
this.egw.message(this.egw.lang('New mail from %1', pushData.acl.from)+'\n'+pushData.acl.subject+'\n'+pushData.acl.snippet, 'success');
// increment notification counter on (closed) mail tab
let framework = egw_getFramework();
if (framework) framework.notifyAppTab('mail');
}
// check if we might not see it because we are on a different mail account or folder
let nm = this.et2 ? this.et2.getWidgetById('nm') : null;