[empathy] Always display favorite contacts (#592595)



commit 6011de2aa9fc4427acfa42ffe423fb166a165058
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Thu Nov 11 12:28:41 2010 +0100

    Always display favorite contacts (#592595)

 libempathy-gtk/empathy-individual-view.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/libempathy-gtk/empathy-individual-view.c b/libempathy-gtk/empathy-individual-view.c
index 7bc05b7..694248c 100644
--- a/libempathy-gtk/empathy-individual-view.c
+++ b/libempathy-gtk/empathy-individual-view.c
@@ -1681,6 +1681,7 @@ individual_view_is_visible_individual (EmpathyIndividualView *self,
   EmpathyLiveSearch *live = EMPATHY_LIVE_SEARCH (priv->search_widget);
   const gchar *str;
   GList *personas, *l;
+  gboolean is_favorite;
 
   /* We're only giving the visibility wrt filtering here, not things like
    * presence. */
@@ -1690,8 +1691,10 @@ individual_view_is_visible_individual (EmpathyIndividualView *self,
       return FALSE;
     }
 
+  is_favorite = folks_favourite_get_is_favourite (
+      FOLKS_FAVOURITE (individual));
   if (is_searching == FALSE)
-    return (priv->show_offline || is_online);
+    return (priv->show_offline || is_online || is_favorite);
 
   /* check alias name */
   str = folks_aliasable_get_alias (FOLKS_ALIASABLE (individual));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]