Bug 25149

Summary: TpAccount doesn't fire "status-changed" if the account is removed
Product: Telepathy Reporter: Rob Bradford <rob>
Component: tp-glibAssignee: Simon McVittie <smcv>
Status: RESOLVED FIXED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium Keywords: patch
Version: unspecified   
Hardware: Other   
OS: All   
URL: http://git.collabora.co.uk/?p=user/smcv/telepathy-glib-smcv.git;a=shortlog;h=refs/heads/account
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 24209    

Description Rob Bradford 2009-11-17 10:58:56 UTC
If the account is removed from the AccountManager the CM gets disconnected but the signal about the disconnection is never propagated through to the Account.

The workaround is to listen for the status change on the Connection from the Account. But since anybody using Account will have to do this it would be nice if the signal can come through Account without the need to listen on another signal.h
Comment 1 Simon McVittie 2009-12-01 09:55:38 UTC
A better workaround would be to consider the status to have become DISCONNECTED if the TpAccount emits 'invalidated', I think?
Comment 2 Simon McVittie 2009-12-18 11:18:09 UTC
+patch. Is this what you're after?
Comment 3 Sjoerd Simons 2010-01-21 03:33:26 UTC
Code looks fine, test would give you some bonus points ;)
Comment 4 Simon McVittie 2010-01-21 04:04:24 UTC
Merged already, apparently... fixed in 0.9.3 or 0.10.0, whichever comes first.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.