From 7c3389cdc7276917d23c83b646573b6d9f22cfa7 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 10 Nov 2011 10:54:04 +0100 Subject: [PATCH] update_weak_contact: use a greater or equal comparaison That way we'll pick at least one TpContact if there is only one contact in the individual and he doesn't have any presence (IRC for example). https://bugzilla.gnome.org/show_bug.cgi?id=663763 --- libempathy-gtk/empathy-individual-widget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libempathy-gtk/empathy-individual-widget.c b/libempathy-gtk/empathy-individual-widget.c index 49e52861..bbd8c962 100644 --- a/libempathy-gtk/empathy-individual-widget.c +++ b/libempathy-gtk/empathy-individual-widget.c @@ -189,7 +189,7 @@ update_weak_contact (EmpathyIndividualWidget *self) presence_type_cur = folks_presence_details_get_presence_type ( presence); - if (folks_presence_details_typecmp ( + if (tp_contact == NULL || folks_presence_details_typecmp ( presence_type_cur, presence_type) > 0) { presence_type = presence_type_cur; -- 2.39.2