Ignore:
Timestamp:
08/04/10 14:46:38 (14 years ago)
Author:
alexandrecorreia
Message:

Ticket #1091 - Implementado a busca de salas para bate-papo no novo modulo Expresso messenger XEP-0045-MUC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/jabberit_messenger/jmessenger/js/trophyim.js

    r3129 r3132  
    647647    { 
    648648        var xquery = msg.getElementsByTagName("x"); 
    649          
    650         if ( xquery.length > 0 ) 
     649 
     650        if ( xquery.length > 0 ) 
    651651        { 
    652652                for ( var i = 0; i < xquery.length; i++ ) 
     
    687687                                else 
    688688                                { 
    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                                        } 
    692695                                } 
    693696                        } 
     
    10881091                        } 
    10891092                } 
    1090  
     1093                 
    10911094                setTimeout( function() 
    10921095                { 
    1093                         _winBuild('window_chat_room_' + jidChatRoom, 'remove'); 
     1096                        _winBuild("window_chat_room_" + jidChatRoom, "remove"); 
    10941097                         
    1095                 }, 500 ); 
     1098                }, 650 ); 
    10961099                 
    10971100        }); 
     
    12631266    joinChatRoom : function( roomName ) 
    12641267    { 
    1265         var presence = $pres( {from: TrophyIM.connection.jid, to: roomName} ).c("x",{xmlns: Strophe.NS.MUC}); 
     1268        var presence = $pres( {from: TrophyIM.connection.jid, to: roomName} ).c("x",{xmlns: Strophe.NS.MUC}); 
    12661269         
    12671270                TrophyIM.connection.send( presence ); 
Note: See TracChangeset for help on using the changeset viewer.