@ -139,6 +139,7 @@ define(['underscore', 'bigscreen', 'moment', 'webrtc.adapter'], function(_, BigS
@@ -139,6 +139,7 @@ define(['underscore', 'bigscreen', 'moment', 'webrtc.adapter'], function(_, BigS
$scope . microphoneMute = false ;
$scope . cameraMute = false ;
$scope . chatEnabled = false ;
$scope . chatMessagesUnseen = 0 ;
$scope . autoAccept = null ;
$scope . showBuddylist = true ;
$scope . master = {
@ -661,6 +662,14 @@ define(['underscore', 'bigscreen', 'moment', 'webrtc.adapter'], function(_, BigS
@@ -661,6 +662,14 @@ define(['underscore', 'bigscreen', 'moment', 'webrtc.adapter'], function(_, BigS
} ) ;
$scope . $on ( "chatincoming" , function ( ) {
$scope . chatMessagesUnseen ++ ;
} ) ;
$scope . $on ( "chatseen" , function ( ) {
$scope . chatMessagesUnseen = 0 ;
} ) ;
_ . defer ( function ( ) {
if ( ! $window . webrtcDetectedVersion ) {
alertify . dialog . alert ( translation . _ ( "Your browser does not support WebRTC. No calls possible." ) ) ;