* Calendar/esync: control skip notifications (server-side) on client-side calendar edits/add as we introduced the control of client - side notification

This commit is contained in:
Klaus Leithoff 2012-06-13 09:48:24 +00:00
parent fcd9862198
commit 3bd50e3e99

View File

@ -550,7 +550,13 @@ return array(); // temporary disabling meeting requests from calendar
$event = $this->message2event($message, $account, $event);
// store event, ignore conflicts and skip notifications, as AS clients do their own notifications
if (!($id = $this->calendar->update($event,$ignore_conflicts=true,$touch_modified=true,$ignore_acl=false,$updateTS=true,$messages=null, $skip_notification=true)))
$skip_notification = false;
if (isset($GLOBALS['egw_info']['user']['preferences']['activesync']['felamimail-allowSendingInvitations']) &&
$GLOBALS['egw_info']['user']['preferences']['activesync']['felamimail-allowSendingInvitations']=='send')
{
$skip_notification = true; // to avoid double notification from client AND Server
}
if (!($id = $this->calendar->update($event,$ignore_conflicts=true,$touch_modified=true,$ignore_acl=false,$updateTS=true,$messages=null, $skip_notification)))
{
debugLog(__METHOD__."('$folderid',$id,...) error saving event=".array2string($event)."!");
return false;