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); }
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(); }