|
|
@ -29,17 +29,10 @@ class Notifs extends WidgetCommon |
|
|
|
$this->addcss('notifs.css'); |
|
|
|
$this->addjs('notifs.js'); |
|
|
|
|
|
|
|
/* TODO remove Moxl Notification (inbox) actions |
|
|
|
$this->registerEvent('notification', 'onNotification'); |
|
|
|
$this->registerEvent('notificationdelete', 'onNotificationDelete'); |
|
|
|
$this->registerEvent('notifications', 'displayNotifications'); |
|
|
|
$this->registerEvent('nonotification', 'onNoNotification');*/ |
|
|
|
|
|
|
|
$this->registerEvent('subscribe', 'onNotifs'); |
|
|
|
$this->registerEvent('roster_additem_handle', 'onNotifs'); |
|
|
|
$this->registerEvent('presence_subscribe_handle', 'onNotifs'); |
|
|
|
$this->registerEvent('presence_subscribed_handle', 'onNotifs'); |
|
|
|
//$this->registerEvent('presence_unsubscribed_handle', 'onNotifs');
|
|
|
|
} |
|
|
|
|
|
|
|
function onNotifs($packet = false) |
|
|
|