Bug 270666

Summary: Problems with Removing non-jabber contacts
Product: [Unmaintained] telepathy Reporter: George Goldberg <grundleborg>
Component: contactlistAssignee: David Edmundson <kde>
Status: RESOLVED WORKSFORME    
Severity: normal CC: kde
Priority: NOR    
Version: unspecified   
Target Milestone: 0.4.0   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description George Goldberg 2011-04-11 12:09:59 UTC
Nwoki reports that there are some problems with removing contacts failing when trying to remove a non-Jabber contact. This needs investigating and either reporting upstream if it is their bug, or fixing if it is our bug.

Assigned to nwoki at 10th April IRC Meeting.
Comment 1 David Edmundson 2011-04-27 14:59:00 UTC
Just adding some comments from a discussion in IRC a while back.

The problem could be that ContactManager::allKnownContacts() doesn't only return items in the buddy list. It returns everyone you've got some record on the server with. 

For the buddy list we only want to show contacts for whom we have a presenceSubscriptionState. 

This could be done either in the model itself (ask boiko first) or simply as a fixed part of our filter model.

There is a talk of this being really easy to do in future telepathy with something like AccountSet but for Contacts. 

Based on that, I would choose the add it to our filter model option as it's a much faster/easier as a temporary hack.
Comment 2 David Edmundson 2011-04-28 20:49:32 UTC
Just tested this in butterfly (0.5.15)

Even after calling contactManager->removeContact(someContact);
someContact.subscriptionState still returns PresenceStateYes;

Therefore the proposed fix above will do nothing.
Comment 3 David Edmundson 2011-05-05 22:00:24 UTC
Just tried in Empathy.

Removed a contact from MSN with no problems/errors/issues at all.

This contact was also immediately removed from my KDE list.

This shows:
KDE Telepathy Contact List code that displays users works fine.
Telepathy-Butterfly works fine.

The implication is that telepathy-Qt4 behaves differently to whatever "removing" code empathy does.
Comment 4 David Edmundson 2011-05-16 18:33:10 UTC
Assigning to me for investigation.
Removing from the list of blocking bugs on telepathy release.
Comment 5 David Edmundson 2011-12-09 17:24:36 UTC
Just tested on my MSN account in Haze and everything worked fine.

This was probably a butterfly bug and therefore no longer relevant.