예제 #1
0
파일: Notifs.php 프로젝트: Anon215/movim
 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);
 }
예제 #2
0
파일: Notifs.php 프로젝트: Nyco/movim
 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();
 }