Ignore:
Timestamp:
07/28/10 17:35:23 (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
  • trunk/jabberit_messenger/jmessenger/js/trophyim.js

    r3096 r3097  
    670670                if( xmlns.indexOf("http://jabber.org/protocol/muc#user") == 0 ) 
    671671                { 
    672                         var nameChatRoom = xquery[i].parentNode.getAttribute('from') 
     672                        var nameChatRoom = xquery[i].parentNode.getAttribute('from'); 
    673673                                nameChatRoom = Strophe.getBareJidFromJid(nameChatRoom); 
    674674 
     
    695695                        if( nodeUser == null && xquery[i].firstChild.getAttribute('jid') ) 
    696696                        { 
    697                                 nameChatRoom = document.getElementById(nameChatRoom + '__roomChat__participants'); 
    698                                 nameChatRoom.appendChild( _UserChatRoom ); 
     697                                if( document.getElementById( nameChatRoom + '__roomChat__participants' ) != null ) 
     698                                { 
     699                                        nameChatRoom = document.getElementById( nameChatRoom + '__roomChat__participants' ); 
     700                                        nameChatRoom.appendChild( _UserChatRoom ); 
     701                                } 
     702                                else 
     703                                { 
     704                                        TrophyIM.makeChatRoom( nameChatRoom, "TESTE_MEU" ); 
     705                                         
     706                                        nameChatRoom = document.getElementById( nameChatRoom + '__roomChat__participants' ); 
     707                                        nameChatRoom.appendChild( _UserChatRoom ); 
     708                                } 
    699709                        } 
    700710                        else 
Note: See TracChangeset for help on using the changeset viewer.