]> git.0d.be Git - empathy.git/commitdiff
Autocomplete for offline contacts. Closes bug #583919.
authorJustin Forest <justin.forest@gmail.com>
Mon, 2 Nov 2009 14:54:01 +0000 (17:54 +0300)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 3 Nov 2009 12:23:12 +0000 (12:23 +0000)
libempathy-gtk/empathy-new-message-dialog.c

index d39f71bcc31b706b3bcbe3d5aaf6c1d128b0adfa..c1069f87950e53667f055995fdecb84b95e4a999 100644 (file)
@@ -99,23 +99,21 @@ new_message_dialog_account_changed_cb (GtkWidget               *widget,
        while (members) {
                EmpathyContact *contact = members->data;
 
-               if (empathy_contact_is_online (contact)) {
-                       DEBUG ("Adding contact ID %s, Name %s",
-                              empathy_contact_get_id (contact),
-                              empathy_contact_get_name (contact));
-
-                       tmpstr = g_strdup_printf ("%s (%s)",
-                               empathy_contact_get_name (contact),
-                               empathy_contact_get_id (contact));
-
-                       gtk_list_store_insert_with_values (store, &iter, -1,
-                               COMPLETION_COL_TEXT, tmpstr,
-                               COMPLETION_COL_ID, empathy_contact_get_id (contact),
-                               COMPLETION_COL_NAME, empathy_contact_get_name (contact),
-                               -1);
-
-                       g_free (tmpstr);
-               }
+               DEBUG ("Adding contact ID %s, Name %s",
+                      empathy_contact_get_id (contact),
+                      empathy_contact_get_name (contact));
+
+               tmpstr = g_strdup_printf ("%s (%s)",
+                       empathy_contact_get_name (contact),
+                       empathy_contact_get_id (contact));
+
+               gtk_list_store_insert_with_values (store, &iter, -1,
+                       COMPLETION_COL_TEXT, tmpstr,
+                       COMPLETION_COL_ID, empathy_contact_get_id (contact),
+                       COMPLETION_COL_NAME, empathy_contact_get_name (contact),
+                       -1);
+
+               g_free (tmpstr);
 
                g_object_unref (contact);
                members = g_list_delete_link (members, members);