[Bug 35633] ContactFactory does not introspect Contacts correctly for all protocols
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sat Apr 23 17:05:12 CEST 2011
https://bugs.freedesktop.org/show_bug.cgi?id=35633
--- Comment #12 from Andre Moreira Magalhaes <andrunko at gmail.com> 2011-04-23 08:05:11 PDT ---
(In reply to comment #11)
> Thanks, the new fix is much better. The test and tp-qt4 parts are OK to merge,
> but the example needs a small adjustment:
>
> you're currently downloading allKnownContacts immediately after receiving a new
> Connection, with no regard to the ContactManager's state. This works if the
> connection was there already when starting the example, but is racy on
> connection changes - and a racy implementation in example code is a big no-no.
> You need to only download allKnownContacts when the state is Success.
>
> This again furthers my thinking that the ContactList D-Bus API should have
> separate TemporaryFailure and PermanentFailure states instead of the current
> Failure state, so that we could have a feature which only completes until the
> ContactManager moves away from the TemporaryFailure state (at which point
> allKnownContacts() will be populated, if ever) which apps like this could use.
How could I forget that? I am all for a PermanentFailure state and a feature to
make this easier. In the meantime updated the roster example to listen to
ContactManager state change signal.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the telepathy-bugs
mailing list