Skip to content

Commit

Permalink
Update whatsprot.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Bashin authored and shirioko committed Nov 18, 2013
1 parent d4c182f commit ae3cf3a
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/php/whatsprot.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1995,23 +1995,6 @@ protected function processInboundData($data)
$node->getChild("picture")->getData()
));
}
if ($node->hasChild('notification') && $node->getChild('notification')->getAttribute('type') == 'picture') {
if ($node->getChild('notification')->hasChild('set')) {
$this->eventManager()->fire('onProfilePictureChanged', array(
$this->phoneNumber,
$node->getAttribute('from'),
$node->getAttribute('id'),
$node->getAttribute('t')
));
} else if ($node->getChild('notification')->hasChild('delete')) {
$this->eventManager()->fire('onProfilePictureDeleted', array(
$this->phoneNumber,
$node->getAttribute('from'),
$node->getAttribute('id'),
$node->getAttribute('t')
));
}
}
if ($node->getChild(0) != null && $node->getChild(0)->getTag() == "media") {
$this->processUploadResponse($node);
}
Expand Down

0 comments on commit ae3cf3a

Please sign in to comment.