[Telepathy] Acknowledging Messages in an Observer

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Fri Feb 10 02:09:00 PST 2012


Le jeudi 09 février 2012 à 19:24 +0000, David Edmundson a écrit :
> 1) Is it up to the client code to throw away its references to the
> text channel after it successfully delegates?

Yes, the client is supposed to update HandledChannels if the
DelegateChannels() call succeeded.
See delegate_channels_cb in telepathy-glib/base-client.c

> 2) Can the client keep the channel, but know to effectively act like
> an observer? If so is there any way to find out if a channel is being
> handled by our application or not?

Sure you can do that. The Shell does exactly that actually (but still
ack messages when needed, as said in my other mail).
I added tp_base_client_is_handling_channel() is tp-glib to easily know
if we are currently the handler of a channel or not.


> I ask because after I call delegateChannels when I browse my original
> handler in dbusviewer Client.Handler/HandledChannels still seems to
> have the original channel. This seems wrong?
> 
> Also when I delegateChannels can I pass hints?
> In the process of this contact list -> plasmoid -> textUI approach any
> hints now get lost. We use a special KDE channel hint to work round a
> kwin "bug", and now that's not working. It seems limiting to not be
> able to pass them.

No, this has been considered when designing the API but we didn't
support it. See https://bugs.freedesktop.org/show_bug.cgi?id=25293 for
the full story.

> Thanks for all your help so far!

Np :)


	G.



More information about the telepathy mailing list