Merge pull request #472 from xX7/master
Merge pull request #472 from xX7/master

OnProfilePictureChanged Event

--- a/src/php/whatsprot.class.php
+++ b/src/php/whatsprot.class.php
@@ -1746,6 +1746,19 @@
                             $node->getChild(2)->getData()
                         ));
                     }
+                    
+                    
+                    if ($node->getChild('notify') != null && $node->getChild(0)->getAttribute('name') != null && $node->getChild('notification') != null) {
+                        if ($node->getChild(2)->getAttribute('type') == 'picture') {
+                            $this->eventManager()->fire('onProfilePictureChanged', array(
+                                $this->phoneNumber,
+                                $node->getAttribute('from'),
+                                $node->getAttribute('id'),
+                                $node->getAttribute('t')
+                            ));
+                        }
+                    }
+                    
                     if ($node->getChild('notify') != null && $node->getChild(0)->getAttribute('name') != null && $node->getChild('media') != null) {
                         if ($node->getChild(2)->getAttribute('type') == 'image') {
                             $this->eventManager()->fire('onGetImage', array(