]> git.0d.be Git - empathy.git/commitdiff
Don't set NM presence state on connect when it was unset
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Mon, 1 Jun 2009 11:06:50 +0000 (12:06 +0100)
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>
Mon, 1 Jun 2009 15:57:47 +0000 (16:57 +0100)
When the presence state that was saved upon disconnect was _UNSET don't try to
set it when we reconnect.

libempathy/empathy-idle.c

index dbc1473e8510a5f4bf91cb488575c3a81b4260c0..92ab9f39f785d326ae6f5a5f1e5e0a198bb2ffbb 100644 (file)
@@ -230,7 +230,8 @@ idle_nm_state_change_cb (DBusGProxy  *proxy,
 
        priv = GET_PRIV (idle);
 
-       if (!priv->use_nm) {
+       if (!priv->use_nm
+           || priv->nm_saved_state == TP_CONNECTION_PRESENCE_TYPE_UNSET) {
                return;
        }