The TpConnection returned by tp_contact_get_connection() doesn't have any feature guaranteed to be prepared. I'd like to have API when requesting TpContacts saying "please prepare these features on the TpConnection". So the rest of Empathy wouldn't have to care doing extra async calls later, then can just use the objects when it's needed. (For example they could use the TpCapabilities object of the connection to check RCC). Once TpContact (and/or TpConnection) will have gained an account property (bug #29417) it could be useful to have the same kind of things for the TpAccount features. Maybe that's something we should keep in mind if when redesigning the contact request API to make it more binding friendly (bug #27687).
(In reply to comment #0) > The TpConnection returned by tp_contact_get_connection() doesn't have any > feature guaranteed to be prepared. This seems backwards: you obtained the contact from a connection in the first place. I don't think it makes sense to have TpContact directly manipulating TpConnection features. Having a TpConnection method to make TpContact objects, add TpConnection features, and not return until both have happened might make more sense, although I expect this to be made somewhat unnecessary by TP_CONNECTION_FEATURE_CONTACT_LIST (which will imply making at least basic TpContact objects for everyone on the contact list - Bug #26205).
Yeah you're right, that's a crap idea.
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.