TpContact: add API to know if a contact is channel specific
@gdesmott
Submitted by Guillaume Desmottes Assigned to Telepathy bugs list
Description
We don't have any API to easily know if a TpContact is channel specific or not.
What about adding something like:
/**
- tp_contact_is_channel_specific:
- @self: a #TpContact
- Returns: (transfer none): a #TpChannel if @self is specific to this channel,
- %NULL otherwise */
I'm not fan of having a is method returning a non gboolean, but the TpChannel is useful to get the owner if we want to (using tp_channel_group_get_contact_owner()).
Also, the documentation of this method would be a bit weird as it will rely on TP_CHANNEL_FEATURE_CONTACTS being prepared on the channel...