Commit b1022742 authored by thomas craipeau's avatar thomas craipeau
Browse files

fix chat

parent 908f5aed
......@@ -410,7 +410,8 @@ var pageProfil = {
},
chat : function(){
hasRc=(typeof contextData.hasRC != "undefined" || contextData.type=="citoyens" ) ? true : false;
rcObj.loadChat(contextData.slug,contextData.type,canEdit,hasRc, contextData);
var isOpen = (params && params.element && params.element.preferences && params.element.preferences.private && params.element.preferences.private === true) ? false : true;
rcObj.loadChat(contextData.slug, contextData.type, isOpen,hasRc, contextData);
},
mindmap : function(){
co.mind();
......
......@@ -163,12 +163,12 @@ class RocketchatController extends CommunecterController {
if($group != null){
// TODO : notification or news
Notification::constructNotification(ActStr::VERB_ADD,
/*Notification::constructNotification(ActStr::VERB_ADD,
array("id" => Yii::app()->session["userId"],"name"=> Yii::app()->session["user"]["name"]),
array( "type"=>$type,"id"=> $id),
null,
"chat"
);
);*/
/*array( "text"=>"Oyé Oyé , ".Yii::app()->session["user"]["name"]." a créé la fusée pour Dailoguer en direct : Click pour découvrir le Rocket Chat de la Communauté.",
"parentType"=>$type,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment