Commit 1e51bf35 authored by sebastian's avatar sebastian

ZP-631 #comment do not validate received notifications, pass all MAPI notifications to the mobile

git-svn-id: https://z-push.org/svn/z-push/trunk@1978 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent 78431951
......@@ -506,15 +506,19 @@ class SyncCollections implements Iterator {
$validNotifications = false;
foreach ($notifications as $folderid) {
// check if the notification on the folder is within our filter
if ($this->CountChange($folderid)) {
ZLog::Write(LOGLEVEL_DEBUG, sprintf("SyncCollections->CheckForChanges(): Notification received on folder '%s'", $folderid));
$validNotifications = true;
$this->waitingTime = time()-$started;
}
else {
ZLog::Write(LOGLEVEL_DEBUG, sprintf("SyncCollections->CheckForChanges(): Notification received on folder '%s', but it is not relevant", $folderid));
}
// ZP-631 - temporary disable checking validity of notifications
// notify mobile for all received notifications
$this->changes[$folderid] = 1;
$validNotifications = true;
// // check if the notification on the folder is within our filter
// if ($this->CountChange($folderid)) {
// ZLog::Write(LOGLEVEL_DEBUG, sprintf("SyncCollections->CheckForChanges(): Notification received on folder '%s'", $folderid));
// $validNotifications = true;
// $this->waitingTime = time()-$started;
// }
// else {
// ZLog::Write(LOGLEVEL_DEBUG, sprintf("SyncCollections->CheckForChanges(): Notification received on folder '%s', but it is not relevant", $folderid));
// }
}
if ($validNotifications)
return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment