[empathy: 1/2] Assume our presence is offline if MC reports it as UNSET (#586645)



commit ae4ef5575fbf5fc20753bbcfb8d7e8b1feff858b
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Mon Jun 22 16:37:23 2009 +0200

    Assume our presence is offline if MC reports it as UNSET (#586645)

 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 c723079..9ab6f80 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]