From ae4ef5575fbf5fc20753bbcfb8d7e8b1feff858b Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 22 Jun 2009 16:37:23 +0200 Subject: Assume our presence is offline if MC reports it as UNSET (#586645) --- libempathy/empathy-idle.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libempathy/empathy-idle.c') 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); -- cgit v1.2.3