diff --git a/mod/chatsvc.php b/mod/chatsvc.php index d76a87462..f32ea56ce 100644 --- a/mod/chatsvc.php +++ b/mod/chatsvc.php @@ -111,7 +111,7 @@ function chatsvc_content(&$a) { $r = q("update chatpresence set cp_last = '%s' where cp_room = %d and cp_xchan = '%s' and cp_client = '%s' limit 1", dbesc(datetime_convert()), - intval($room_id), + intval($a->data['chat']['room_id']), dbesc(get_observer_hash()), dbesc($_SERVER['REMOTE_ADDR']) ); diff --git a/view/tpl/chat.tpl b/view/tpl/chat.tpl index f3f3ee5bd..19b3425da 100644 --- a/view/tpl/chat.tpl +++ b/view/tpl/chat.tpl @@ -1,6 +1,6 @@