[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdenetwork/kopete/protocols/msn
From: Olivier Goffart <ogoffart () kde ! org>
Date: 2005-06-01 9:27:31
Message-ID: 1117618051.207229.6539.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 420743 by ogoffart:
ignore the myself contact, and don't add it to the serverside list
M +3 -2 msnaccount.cpp
--- trunk/KDE/kdenetwork/kopete/protocols/msn/msnaccount.cpp #420742:420743
@@ -392,7 +392,7 @@
for ( ; it.current(); ++it )
{
MSNContact *c = static_cast<MSNContact *>( *it );
- if(c->isDeleted() && c->metaContact() && !c->metaContact()->isTemporary())
+ if(c->isDeleted() && c->metaContact() && !c->metaContact()->isTemporary() && \
c!=myself()) {
if(c->serverGroups().isEmpty())
{ //the contact is new, add it on the server
@@ -685,7 +685,8 @@
void MSNAccount::slotContactListed( const QString& handle, const QString& \
publicName, uint lists, const QString& group ) {
// On empty lists handle might be empty, ignore that
- if ( handle.isEmpty() )
+ // ignore also the myself contact.
+ if ( handle.isEmpty() || handle==accountId())
return;
MSNContact *c = static_cast<MSNContact *>( contacts()[ handle ] );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic