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 { ...@@ -506,15 +506,19 @@ class SyncCollections implements Iterator {
$validNotifications = false; $validNotifications = false;
foreach ($notifications as $folderid) { foreach ($notifications as $folderid) {
// check if the notification on the folder is within our filter // ZP-631 - temporary disable checking validity of notifications
if ($this->CountChange($folderid)) { // notify mobile for all received notifications
ZLog::Write(LOGLEVEL_DEBUG, sprintf("SyncCollections->CheckForChanges(): Notification received on folder '%s'", $folderid)); $this->changes[$folderid] = 1;
$validNotifications = true; $validNotifications = true;
$this->waitingTime = time()-$started; // // check if the notification on the folder is within our filter
} // if ($this->CountChange($folderid)) {
else { // ZLog::Write(LOGLEVEL_DEBUG, sprintf("SyncCollections->CheckForChanges(): Notification received on folder '%s'", $folderid));
ZLog::Write(LOGLEVEL_DEBUG, sprintf("SyncCollections->CheckForChanges(): Notification received on folder '%s', but it is not relevant", $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) if ($validNotifications)
return true; 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