File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,6 @@ var CONTROLLER = window.CONTROLLER = function(phone){
173173 if ( idx != - 1 ) userArray . splice ( idx , 1 ) [ 0 ] ; // User leaving
174174 } else { // New User added to stream/group
175175 if ( idx == - 1 ) { // Tell everyone in array of new user first, then add to array.
176- alert ( phone . oneway ) ;
177176 if ( ! phone . oneway ) publishCtrlAll ( "userJoin" , session . number ) ;
178177 userArray . push ( session ) ;
179178 }
@@ -222,7 +221,7 @@ var CONTROLLER = window.CONTROLLER = function(phone){
222221 callAuth ( m . data ) ;
223222 break ;
224223 case "userJoin" :
225- if ( phone . oneway ) { alert ( "HERE" ) ; add_to_stream ( m . data ) ; } // JOIN STREAM HERE!
224+ if ( phone . oneway ) { add_to_stream ( m . data ) ; } // JOIN STREAM HERE!
226225 else add_to_group ( m . data ) ;
227226 break ;
228227 case "userLeave" :
Original file line number Diff line number Diff line change 8787 oneway : true ,
8888 broadcast : true
8989 } ) ;
90- phone . debug ( function ( m ) { console . log ( m ) ; } )
90+ // phone.debug(function(m){ console.log(m); })
9191 var ctrl = window . ctrl = CONTROLLER ( phone ) ;
9292 ctrl . ready ( function ( ) {
9393 form . streamname . style . background = "#55ff5b" ;
You can’t perform that action at this time.
0 commit comments