diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-01-15 22:04:48 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-01-16 23:10:29 +0800 |
commit | 605672f66eb239c2aed2de45cf737f9278374614 (patch) | |
tree | 513ef0cffac7393e6a8c1271a37ae509bf66a736 | |
parent | 878db108e421ef8ed628ffb7e223b1ee6e031909 (diff) | |
download | gsoc2013-empathy-605672f66eb239c2aed2de45cf737f9278374614.tar gsoc2013-empathy-605672f66eb239c2aed2de45cf737f9278374614.tar.gz gsoc2013-empathy-605672f66eb239c2aed2de45cf737f9278374614.tar.bz2 gsoc2013-empathy-605672f66eb239c2aed2de45cf737f9278374614.tar.lz gsoc2013-empathy-605672f66eb239c2aed2de45cf737f9278374614.tar.xz gsoc2013-empathy-605672f66eb239c2aed2de45cf737f9278374614.tar.zst gsoc2013-empathy-605672f66eb239c2aed2de45cf737f9278374614.zip |
Consider connected account which doesn't implement presence as available (#604700)
-rw-r--r-- | src/empathy-accounts-dialog.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c index edec6008d..69bb110be 100644 --- a/src/empathy-accounts-dialog.c +++ b/src/empathy-accounts-dialog.c @@ -224,6 +224,14 @@ accounts_dialog_update_status_infobar (EmpathyAccountsDialog *dialog, presence = tp_account_get_current_presence (account, NULL, &status_message); account_enabled = tp_account_is_enabled (account); creating_account = FALSE; + + if (status == TP_CONNECTION_STATUS_CONNECTED && + (presence == TP_CONNECTION_PRESENCE_TYPE_OFFLINE || + presence == TP_CONNECTION_PRESENCE_TYPE_UNSET)) + /* If presence is Unset (CM doesn't implement SimplePresence) but we + * are connected, consider ourself as Available. + * We also check Offline because of this MC5 bug: fd.o #26060 */ + presence = TP_CONNECTION_PRESENCE_TYPE_AVAILABLE; } else { |