[telepathy-mission-control/master] McdAccount: when forcing loaded AutomaticPresence to be online, set status member too

Simon McVittie simon.mcvittie at collabora.co.uk
Fri Jun 26 05:07:58 PDT 2009


Alberto points out that the status is used (if supported) regardless of
the value of the presence type, with the presence type used only to select
fallbacks.

This is mitigated by the fact that if we fail to set the AutomaticPresence
(because it's not an online presence type), we'll keep the default
available presence that was obtained by signing in.
---
 src/mcd-account.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/mcd-account.c b/src/mcd-account.c
index 8b0f668..7d0d7d7 100644
--- a/src/mcd-account.c
+++ b/src/mcd-account.c
@@ -1921,6 +1921,7 @@ mcd_account_setup (McdAccount *account)
     if (!_presence_type_is_online (priv->auto_presence_type))
     {
         priv->auto_presence_type = TP_CONNECTION_PRESENCE_TYPE_AVAILABLE;
+        priv->auto_presence_status = "available";
     }
 
     priv->auto_presence_status =
-- 
1.5.6.5



More information about the telepathy-commits mailing list