Don't show icon to start WebRTC video chat when user is offline - refs #7558

1.10.x
Angel Fernando Quiroz Campos 9 years ago
parent bfb46c21ad
commit 2839947776
  1. 5
      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)
) {
$('<a>')
.addClass('btn btn-xs')
.attr({

Loading…
Cancel
Save