From c06a2a5a2bb1a923918de34fe63efe18c090902b Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Thu, 31 May 2007 06:50:58 +0000 Subject: Do not restore away presence message when coming back after the user set 2007-05-31 Xavier Claessens * libempathy/empathy-idle.c: Do not restore away presence message when coming back after the user set manually to away. svn path=/trunk/; revision=101 --- libempathy/empathy-idle.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libempathy/empathy-idle.c') diff --git a/libempathy/empathy-idle.c b/libempathy/empathy-idle.c index 42719a47e..6b9cfb3b9 100644 --- a/libempathy/empathy-idle.c +++ b/libempathy/empathy-idle.c @@ -154,6 +154,7 @@ idle_session_idle_changed_cb (DBusGProxy *gs_proxy, /* We are now idle, set state to away */ priv->saved_state = mission_control_get_presence_actual (priv->mc, NULL); + priv->saved_status = mission_control_get_presence_message_actual (priv->mc, NULL); if (priv->saved_state <= MC_PRESENCE_OFFLINE || priv->saved_state == MC_PRESENCE_HIDDEN) { @@ -168,8 +169,6 @@ idle_session_idle_changed_cb (DBusGProxy *gs_proxy, priv->saved_status = NULL; } - priv->saved_status = mission_control_get_presence_message_actual (priv->mc, NULL); - gossip_debug (DEBUG_DOMAIN, "Going to autoaway"); mission_control_set_presence (priv->mc, new_state, -- cgit v1.2.3