------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=124940         




------- Additional Comments From kedgedev centrum cz  2006-07-28 15:48 -------
SVN commit 567294 by rjarosz:

Backport fix for bug 124940: [liboscar] use new aliases from the server.
First use alias if a user doesn't have alias than use nickname from user info.

CCBUG: 124940



 M  +3 -3      icq/icqcontact.cpp  
 M  +4 -0      oscarcontact.cpp  


--- branches/KDE/3.5/kdenetwork/kopete/protocols/oscar/icq/icqcontact.cpp 
#567293:567294
 @ -199,7 +199,7  @
        if ( ( ( hasProperty( 
Kopete::Global::Properties::self()->nickName().key() )
                 && nickName() == contactId() )
             || !hasProperty( 
Kopete::Global::Properties::self()->nickName().key() ) ) &&
-            !m_requestingNickname )
+            !m_requestingNickname && m_ssiItem.alias().isEmpty() )
        {
                m_requestingNickname = true;
                int time = ( KApplication::random() % 20 ) * 1000;
 @ -293,7 +293,7  @
        kdDebug(OSCAR_ICQ_DEBUG) << k_funcinfo << "received long info from 
engine" << endl;
 
        ICQGeneralUserInfo genInfo = mAccount->engine()->getGeneralInfo( 
contact );
-       if ( !genInfo.nickname.isEmpty() )
+       if ( m_ssiItem.alias().isEmpty() && !genInfo.nickname.isEmpty() )
                setNickName( genInfo.nickname );
        emit haveBasicInfo( genInfo );
 
 @ -326,7 +326,7  @
        else
                removeProperty(mProtocol->lastName);
        */
-       if ( !shortInfo.nickname.isEmpty() )
+       if ( m_ssiItem.alias().isEmpty() && !shortInfo.nickname.isEmpty() )
        {
                kdDebug(14153) << k_funcinfo <<
                        "setting new displayname for former UIN-only Contact" 
<< endl;
--- branches/KDE/3.5/kdenetwork/kopete/protocols/oscar/oscarcontact.cpp 
#567293:567294
 @ -79,6 +79,10  @
 void OscarContact::setSSIItem( const Oscar::SSI& ssiItem )
 {
        m_ssiItem = ssiItem;
+
+       if ( !m_ssiItem.alias().isEmpty() )
+               setProperty( Kopete::Global::Properties::self()->nickName(), 
m_ssiItem.alias() );
+
        emit updatedSSI();
 }
_______________________________________________
kopete-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kopete-devel

Reply via email to