[empathy: 1/2] Assume our presence is offline if MC reports it as UNSET (#586645)
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: svn-commits-list gnome org
- Subject: [empathy: 1/2] Assume our presence is offline if MC reports it as UNSET (#586645)
- Date: Mon, 22 Jun 2009 10:45:25 -0400 (EDT)
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]