* Mail: handle push of delete or move of all messages in folder

This commit is contained in:
Ralf Becker 2020-09-08 17:17:25 +02:00
parent 9f9cce88b2
commit 9ed7d0b110

View File

@ -435,7 +435,11 @@ app.classes.mail = AppJS.extend(
// only handle delete by default, for simple case of uid === "$app::$id" // only handle delete by default, for simple case of uid === "$app::$id"
if (pushData.type === 'delete') if (pushData.type === 'delete')
{ {
return this._super.call(this, pushData); [].concat(pushData.id).forEach(uid => {
pushData.id = uid;
this._super.call(this, pushData);
});
return;
} }
// notify user a new mail arrived // notify user a new mail arrived