Ejemplo n.º 1
0
 function ajaxRefuse($jid)
 {
     $jid = echapJid($jid);
     $p = new Unsubscribed();
     $p->setTo($jid)->request();
     // TODO : move in Moxl
     $session = \Session::start();
     $notifs = $session->get('activenotifs');
     unset($notifs[$jid]);
     $session->set('activenotifs', $notifs);
     $this->onNotifs();
     Notification::ajaxClear('invite|' . $jid);
 }
Ejemplo n.º 2
0
 function ajaxRefuse($jid)
 {
     $jid = echapJid($jid);
     $p = new Unsubscribed();
     $p->setTo($jid)->request();
     // TODO : move in Moxl
     $notifs = Cache::c('activenotifs');
     unset($notifs[$jid]);
     Cache::c('activenotifs', $notifs);
     $this->onNotifs();
 }