aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/empathy-roster-window.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/empathy-roster-window.c b/src/empathy-roster-window.c
index b92507b4f..ffaa6b926 100644
--- a/src/empathy-roster-window.c
+++ b/src/empathy-roster-window.c
@@ -1563,6 +1563,7 @@ set_notebook_page (EmpathyRosterWindow *self)
{
GList *accounts;
guint len;
+ TpConnectionPresenceType presence;
accounts = tp_account_manager_get_valid_accounts (
self->priv->account_manager);
@@ -1588,6 +1589,17 @@ set_notebook_page (EmpathyRosterWindow *self)
goto out;
}
+ presence = tp_account_manager_get_most_available_presence (
+ self->priv->account_manager, NULL, NULL);
+
+ if (presence == TP_CONNECTION_PRESENCE_TYPE_OFFLINE)
+ {
+ display_page_message (self,
+ _("Change your presence to see contacts here"),
+ FALSE, FALSE);
+ goto out;
+ }
+
if (empathy_roster_view_is_empty (self->priv->view))
{
if (empathy_roster_view_is_searching (self->priv->view))