- Timestamp:
- 09/29/10 17:00:23 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/jabberit_messenger/jmessenger/js/trophyim.js
r3264 r3308 159 159 _timeOut : { renderRoster : null }, 160 160 161 162 /** Remove Contact ( type = set ) 163 * 164 * 165 */ 166 167 removeResult : { idResult : [] }, 168 161 169 /** Function: setCookie 162 170 * … … 611 619 TrophyIM.connection.send( _iq.tree()); 612 620 } 613 621 614 622 return true; 615 623 }, … … 632 640 if( msg.getAttribute('from').toString().indexOf( TROPHYIM_CHATROOM ) < 0 ) 633 641 { 634 635 } 636 637 642 TrophyIM.rosterObj.setPresence( msg.getAttribute('from'), priority, show, status ); 643 } 644 645 return true; 638 646 }, 639 647 … … 1326 1334 // Remove Contact 1327 1335 var _id = TrophyIM.connection.getUniqueId(); 1328 var delContact = $iq({type: 'set', id: _id}) 1336 1337 // Controller Result 1338 //TrophyIM.removeResult.idResult[ TrophyIM.removeResult.idResult.length ] = jidTo; 1339 1340 var delContact = $iq({type: 'set', id: _id}) 1329 1341 delContact = delContact.c('query').attrs({xmlns : 'jabber:iq:roster'}); 1330 1342 delContact = delContact.c('item').attrs({jid: jidTo, subscription:'remove'}).tree(); … … 2189 2201 var jid_lower = barejid.toLowerCase(); 2190 2202 2191 if( show != 'unavailable' || show != 'error' )2192 { 2193 2203 if( show !== 'unavailable' || show !== 'error' ) 2204 { 2205 if (!this.roster[jid_lower]) 2194 2206 { 2195 2207 this.addContact( barejid, 'not-in-roster' );
Note: See TracChangeset
for help on using the changeset viewer.