Channel-specific handle API is lacking
@oggis
Submitted by Olli Salli Assigned to Telepathy bugs list
Description
TpQt4 Channel objects currently go to great lengths to ensure an application doesn't have to build Contact objects for the members of the channel by itself. This breaks, however, if channel-specific handles are in use (used in eg. XMPP multi-user chats, where users have nicknames, not always directly exposing their global JID). Currently, only a best-effort local handle -> global handle map is provided.
API should be added to provide a local contact pointer (weakref?) to a global contact pointer mapping. Maintaining this mapping requires additional D-Bus roundtrips to construct the global contacts, so it should be an optionally requested Feature.
If feasible, API should be added to Tp::Contact to tell if it's a channel-specific contact, and to access the corresponding global contact, if any. This needs synchronizing the handle owner contact object construction and group change contact object construction and making the association there, though.
Version: git master