]> git.babelmonkeys.de Git - jubjub.git/commitdiff
Show the domainpart for contacts without nick and nodepart
authorFlorian Zeitz <florob@babelmonkeys.de>
Sun, 10 Feb 2013 22:29:57 +0000 (23:29 +0100)
committerFlorian Zeitz <florob@babelmonkeys.de>
Sun, 10 Feb 2013 22:29:57 +0000 (23:29 +0100)
src/gui/gtk/JubGtkRosterUI.m

index e59a79ec6cd8d42de51d2e437eaf1041a644f74d..901da507e2411b08c05ff67aca7e019fec1e021c 100644 (file)
@@ -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);