[Bug 42702] TpContact: add API to know if a contact is channel specific

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Nov 8 14:45:44 CET 2011


https://bugs.freedesktop.org/show_bug.cgi?id=42702

--- Comment #1 from Xavier Claessens <xclaesse at gmail.com> 2011-11-08 05:45:44 PST ---
Note that if CM has recent-enough spec (anything based on tp-glib), TpChannel
will ALWAYS create all its TpContact objects. This is because GROUP feature is
part of CORE, and new spec gives handle+id so creating contacts is free.
CONTACTS feature is to also ensuring those contacts have factory features
prepared, which is not free.

I would call the new method:

gboolean tp_contact_is_channel_specific (TpContact *self, TpChannel
**out_channel);

And accept out_channel==NULL.

That API could also be useful as guard for all
tp_contact_request_subscription_async(),
tp_connection_request_subscription_async() and all their friends. Adding there
g_return_if_fail (!tp_contact_is_channel_specific(contact, NULL));


So this is a +1 from me.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are the assignee for the bug.



More information about the telepathy-bugs mailing list