If there is no ...\com_community\templates\your_active_template\layouts\chat\default.php in Your active JomSocial template, copy/paste one from jomsocial template to Your active template with same folder tree (layouts\chat\default.php) and then edit php file.