diff --git a/main/inc/lib/javascript/chat/js/chat.js b/main/inc/lib/javascript/chat/js/chat.js index 325a8bdfbc..aa1769f08b 100755 --- a/main/inc/lib/javascript/chat/js/chat.js +++ b/main/inc/lib/javascript/chat/js/chat.js @@ -379,7 +379,10 @@ function createChatBox(user_id, chatboxtitle, minimizeChatBox, online, userImage .addClass('chatboxoptions') .appendTo(chatboxHead); - if (!!Modernizr.prefixed('RTCPeerConnection', window)) { + if ( + !!Modernizr.prefixed('RTCPeerConnection', window) && + (online === '1' || online === 1) + ) { $('') .addClass('btn btn-xs') .attr({