mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-20 18:08:02 +02:00
also need to set/remove "read" flag when removing/adding "unseen" class
This commit is contained in:
parent
8460b4d44a
commit
90672ca3af
@ -2699,6 +2699,14 @@ app.classes.mail = AppJS.extend(
|
|||||||
// Update class
|
// Update class
|
||||||
dataElem.data.class += ' ' + _class;
|
dataElem.data.class += ' ' + _class;
|
||||||
|
|
||||||
|
// need to update flags too
|
||||||
|
switch(_class)
|
||||||
|
{
|
||||||
|
case 'unseen':
|
||||||
|
delete dataElem.data.flags.read;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
// Update record, which updates all listeners (including nextmatch)
|
// Update record, which updates all listeners (including nextmatch)
|
||||||
egw.dataStoreUID(mail_uid,dataElem.data);
|
egw.dataStoreUID(mail_uid,dataElem.data);
|
||||||
}
|
}
|
||||||
@ -2749,6 +2757,14 @@ app.classes.mail = AppJS.extend(
|
|||||||
classes.splice(classes.indexOf(_class),1);
|
classes.splice(classes.indexOf(_class),1);
|
||||||
dataElem.data.class = classes.join(' ');
|
dataElem.data.class = classes.join(' ');
|
||||||
|
|
||||||
|
// need to update flags too
|
||||||
|
switch(_class)
|
||||||
|
{
|
||||||
|
case 'unseen':
|
||||||
|
dataElem.data.flags.read = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
// Update record, which updates all listeners (including nextmatch)
|
// Update record, which updates all listeners (including nextmatch)
|
||||||
egw.dataStoreUID(mail_uid,dataElem.data);
|
egw.dataStoreUID(mail_uid,dataElem.data);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user