forked from extern/egroupware
* 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:
parent
3364d1a1df
commit
1d374636d4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user