One of the solutions: You need to change:
...\components\com_community\templates\jomsocial\layouts\chat\default.php
Best way is to copy that file with folder structure to your JomSocial template/theme to something like this:
...\components\com_community\templates\YOUR_THEME\layouts\chat\default.php Find lines 136 and 140 and comment those out like this: