diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-06-22 22:37:23 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-06-22 22:37:23 +0800 |
commit | ae4ef5575fbf5fc20753bbcfb8d7e8b1feff858b (patch) | |
tree | 0ace96d5c68bbbd9b11b17e6910ac5436ba0d05c /libempathy | |
parent | 4c782007bf100a3820dc265bca6fceda17991a77 (diff) | |
download | gsoc2013-empathy-ae4ef5575fbf5fc20753bbcfb8d7e8b1feff858b.tar gsoc2013-empathy-ae4ef5575fbf5fc20753bbcfb8d7e8b1feff858b.tar.gz gsoc2013-empathy-ae4ef5575fbf5fc20753bbcfb8d7e8b1feff858b.tar.bz2 gsoc2013-empathy-ae4ef5575fbf5fc20753bbcfb8d7e8b1feff858b.tar.lz gsoc2013-empathy-ae4ef5575fbf5fc20753bbcfb8d7e8b1feff858b.tar.xz gsoc2013-empathy-ae4ef5575fbf5fc20753bbcfb8d7e8b1feff858b.tar.zst gsoc2013-empathy-ae4ef5575fbf5fc20753bbcfb8d7e8b1feff858b.zip |
Assume our presence is offline if MC reports it as UNSET (#586645)
Diffstat (limited to 'libempathy')
-rw-r--r-- | libempathy/empathy-idle.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libempathy/empathy-idle.c b/libempathy/empathy-idle.c index c72307920..9ab6f807d 100644 --- a/libempathy/empathy-idle.c +++ b/libempathy/empathy-idle.c @@ -91,6 +91,10 @@ idle_presence_changed_cb (MissionControl *mc, priv = GET_PRIV (idle); + if (state == TP_CONNECTION_PRESENCE_TYPE_UNSET) + /* Assume our presence is offline if MC reports UNSET */ + state = TP_CONNECTION_PRESENCE_TYPE_OFFLINE; + DEBUG ("Presence changed to '%s' (%d)", status, state); g_free (priv->status); |