kopano.php (Z-Push-2.6.3) | : | kopano.php (Z-Push-2.6.4) | ||
---|---|---|---|---|
skipping to change at line 960 | skipping to change at line 960 | |||
// Process the meeting response. We don't have to send the actual meetin g response | // Process the meeting response. We don't have to send the actual meetin g response | |||
// e-mail, because the device will send it itself. This seems not to be the case | // e-mail, because the device will send it itself. This seems not to be the case | |||
// anymore for the ios devices since at least version 12.4. Z-Push will send the | // anymore for the ios devices since at least version 12.4. Z-Push will send the | |||
// accepted email in such a case. | // accepted email in such a case. | |||
// @see https://jira.z-hub.io/browse/ZP-1524 | // @see https://jira.z-hub.io/browse/ZP-1524 | |||
$sendresponse = false; | $sendresponse = false; | |||
$deviceType = strtolower(Request::GetDeviceType()); | $deviceType = strtolower(Request::GetDeviceType()); | |||
if ($deviceType == 'iphone' || $deviceType == 'ipad' || $deviceType == ' ipod') { | if ($deviceType == 'iphone' || $deviceType == 'ipad' || $deviceType == ' ipod') { | |||
$matches = array(); | $matches = array(); | |||
if (preg_match("/^Apple-.*?\/(\d{4})\./", Request::GetUserAgent(), $ matches) && isset($matches[1]) && $matches[1] >= 1607 && matches[1] <= 1707) { | if (preg_match("/^Apple-.*?\/(\d{4})\./", Request::GetUserAgent(), $ matches) && isset($matches[1]) && $matches[1] >= 1607 && $matches[1] <= 1707) { | |||
ZLog::Write(LOGLEVEL_DEBUG, sprintf("BackendKopano->MeetingRespo nse: iOS device %s->%s", Request::GetDeviceType(), Request::GetUserAgent())); | ZLog::Write(LOGLEVEL_DEBUG, sprintf("BackendKopano->MeetingRespo nse: iOS device %s->%s", Request::GetDeviceType(), Request::GetUserAgent())); | |||
$sendresponse = true; | $sendresponse = true; | |||
} | } | |||
} | } | |||
switch($response) { | switch($response) { | |||
case 1: // accept | case 1: // accept | |||
default: | default: | |||
$entryid = $meetingrequest->doAccept(false, $sendresponse, false , false, false, false, true); // last true is the $userAction | $entryid = $meetingrequest->doAccept(false, $sendresponse, false , false, false, false, true); // last true is the $userAction | |||
break; | break; | |||
case 2: // tentative | case 2: // tentative | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |