[Telepathy] A query regarding Presences-update

Ajay Garg ajaygargnsit at gmail.com
Wed Jun 6 23:25:19 PDT 2012


Hi all.

I have wriiten a basic python program using telepathy-salut, wherein
buddies are able to see each other coming offline/online on a
telepathy-salut connection.


Following interfaces/signals are being used ::

a)
http://telepathy.freedesktop.org/spec/Channel_Interface_Group.html#Method:GetMembers

This interface is used to get the list (one-time, at startup) of the
buddies, when a machine connects to telepathy-salut connection (obviously,
one singular time).



b)
http://telepathy.freedesktop.org/spec/Connection_Interface_Aliasing.html#Signal:AliasesChanged

This is the basic interface to discover/undiscover buddies on the fly.


c)
http://telepathy.freedesktop.org/spec/Connection_Interface_Simple_Presence.html#Signal:PresencesChanged

This interface is used to update the present status on the fly, of an
already discovered buddy.







All use-cases work intuitively, absolutely fine as expected, EXCEPT THE
FOLLOWING ONE ::

(i)
M1 connects to telepathy-salut.

(ii)
M2 connects to telepathy-salut.
Now, M1 is able to see M2 coming online.
M2 is also able to see M1 (which was online already).

(iii)
M1 disconnects from telepathy-salut.
M2 goes offline from M1's context (as obviously expected).
HOWEVER, M1 IS STILL SHOWN TO BE ONLINE IN M2'S CONTEXT (something not
expected).



So, my query is ::

"""
Is it possible to have the last sub-use-case working as expected (that is,
M1 should also be updated to "offline" status in M2's context), without
using the new, unstable, experimental
http://telepathy.freedesktop.org/spec/Connection_Interface_Keepalive.html

It is ok, if it happens after some time; but it is important that IT DOES
happen.
"""


Looking forward to some thoughts.


Thanks and Regards,
Ajay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/telepathy/attachments/20120607/b1ec795f/attachment.html>


More information about the telepathy mailing list