- Timestamp:
- 08/04/10 14:46:38 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/jabberit_messenger/jmessenger/js/trophyim.js
r3129 r3132 647 647 { 648 648 var xquery = msg.getElementsByTagName("x"); 649 650 649 650 if ( xquery.length > 0 ) 651 651 { 652 652 for ( var i = 0; i < xquery.length; i++ ) … … 687 687 else 688 688 { 689 TrophyIM.makeChatRoom( nameChatRoom, nameChatRoom.substring(0, nameChatRoom.indexOf('@'))); 690 nameChatRoom = document.getElementById( nameChatRoom + '__roomChat__participants' ); 691 nameChatRoom.appendChild( _UserChatRoom ); 689 if( type != 'unavailable' ) 690 { 691 TrophyIM.makeChatRoom( nameChatRoom, nameChatRoom.substring(0, nameChatRoom.indexOf('@'))); 692 nameChatRoom = document.getElementById( nameChatRoom + '__roomChat__participants' ); 693 nameChatRoom.appendChild( _UserChatRoom ); 694 } 692 695 } 693 696 } … … 1088 1091 } 1089 1092 } 1090 1093 1091 1094 setTimeout( function() 1092 1095 { 1093 _winBuild( 'window_chat_room_' + jidChatRoom, 'remove');1096 _winBuild("window_chat_room_" + jidChatRoom, "remove"); 1094 1097 1095 }, 500 );1098 }, 650 ); 1096 1099 1097 1100 }); … … 1263 1266 joinChatRoom : function( roomName ) 1264 1267 { 1265 1268 var presence = $pres( {from: TrophyIM.connection.jid, to: roomName} ).c("x",{xmlns: Strophe.NS.MUC}); 1266 1269 1267 1270 TrophyIM.connection.send( presence );
Note: See TracChangeset
for help on using the changeset viewer.