provide the room name for the room you're in.
This commit is contained in:
parent
33f3cd3d4a
commit
d14afc0ee4
@ -101,8 +101,15 @@ function chat_content(&$a) {
|
||||
$x = chatroom_enter($observer,$room_id,'online',$_SERVER['REMOTE_ADDR']);
|
||||
if(! $x)
|
||||
return;
|
||||
$x = q("select * from chatroom where cr_id = %d and cr_uid = %d $sql_extra limit 1",
|
||||
intval($room_id),
|
||||
intval($a->profile['profile_uid'])
|
||||
);
|
||||
if($x) {
|
||||
$room_name = $x[0]['cr_name'];
|
||||
}
|
||||
$o = replace_macros(get_markup_template('chat.tpl'),array(
|
||||
'$room_name' => '', // should we get this from the API?
|
||||
'$room_name' => $room_name,
|
||||
'$room_id' => $room_id,
|
||||
'$submit' => t('Submit')
|
||||
));
|
||||
|
@ -1 +1 @@
|
||||
2014-01-31.574
|
||||
2014-02-01.575
|
||||
|
@ -1,3 +1,4 @@
|
||||
<h1>{{$room_name}}</h1>
|
||||
<div id="chatContainer" style="height: 100%; width: 100%;">
|
||||
|
||||
<div id="chatTopBar" style="float: left; height: 400px; width: 650px; overflow-y: auto;">
|
||||
|
Reference in New Issue
Block a user