From a4e46ed909f55bc1f8d7f1d5435ec0af0f3ee969 Mon Sep 17 00:00:00 2001 From: Florian Zeitz Date: Sun, 10 Feb 2013 23:29:57 +0100 Subject: [PATCH] Show the domainpart for contacts without nick and nodepart --- src/gui/gtk/JubGtkRosterUI.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gui/gtk/JubGtkRosterUI.m b/src/gui/gtk/JubGtkRosterUI.m index e59a79e..901da50 100644 --- a/src/gui/gtk/JubGtkRosterUI.m +++ b/src/gui/gtk/JubGtkRosterUI.m @@ -204,11 +204,16 @@ static gboolean filter_roster_by_presence(GtkTreeModel *model, 0, [item.name UTF8String], 1, [bareJID UTF8String], 2, "unavailable", -1); - else + else if (item.JID.node) gtk_tree_store_set(roster_model, &contact_iter, 0, [item.JID.node UTF8String], 1, [bareJID UTF8String], 2, "unavailable", -1); + else + gtk_tree_store_set(roster_model, &contact_iter, + 0, [item.JID.domain UTF8String], + 1, [bareJID UTF8String], + 2, "unavailable", -1); contact_path = gtk_tree_model_get_path(GTK_TREE_MODEL( roster_model), &contact_iter); -- 2.39.5