[telepathy-mission-control/master] mcd_account_check_validity: if the account becomes valid, set the requested presence again

Simon McVittie simon.mcvittie at collabora.co.uk
Thu Jun 25 06:29:32 PDT 2009


This means that accounts that become valid will get put online, if an
online presence was requested.
---
 src/mcd-account.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/mcd-account.c b/src/mcd-account.c
index e063442..8726c59 100644
--- a/src/mcd-account.c
+++ b/src/mcd-account.c
@@ -2684,6 +2684,15 @@ mcd_account_check_validity (McdAccount *account)
 	g_value_init (&value, G_TYPE_BOOLEAN);
 	g_value_set_boolean (&value, valid);
 	mcd_account_changed_property (account, "Valid", &value);
+
+        if (valid)
+        {
+            /* newly valid - try setting requested presence again */
+            mcd_account_request_presence_int (account,
+                                              priv->req_presence_type,
+                                              priv->req_presence_status,
+                                              priv->req_presence_message);
+        }
     }
     return valid;
 }
-- 
1.5.6.5




More information about the telepathy-commits mailing list