mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 18:33:39 +01:00
* 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
fcd9862198
commit
3bd50e3e99
@ -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