]> git.0d.be Git - empathy.git/commitdiff
Assume our presence is offline if MC reports it as UNSET (#586645)
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 22 Jun 2009 14:37:23 +0000 (16:37 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 22 Jun 2009 14:37:23 +0000 (16:37 +0200)
libempathy/empathy-idle.c

index c723079204de442c1fdf9bf9b752befaad7a1a9d..9ab6f807deb180cd06f866cb89b74a7f5b7078aa 100644 (file)
@@ -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);