]> git.0d.be Git - empathy.git/commitdiff
Correctly set the EmpathyContact in an EmpathyTpFile. (Jonny Lamb)
authorJonny Lamb <jonny.lamb@collabora.co.uk>
Fri, 21 Nov 2008 16:14:12 +0000 (16:14 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Fri, 21 Nov 2008 16:14:12 +0000 (16:14 +0000)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
svn path=/trunk/; revision=1744

libempathy/empathy-tp-file.c

index 26b33ae87cb393cbfde39925e7f16bb626756830..ca7412bc223ed3229d42544af768d98de4c6eba2 100644 (file)
@@ -302,6 +302,7 @@ tp_file_constructor (GType                  type,
   EmpathyTpFilePriv *priv;
   GError            *error = NULL;
   GHashTable        *properties;
+  TpHandle           handle;
 
   tp_file = G_OBJECT_CLASS (empathy_tp_file_parent_class)->constructor (type, n_props, props);
 
@@ -325,6 +326,12 @@ tp_file_constructor (GType                  type,
                                                                   tp_file,
                                                                   NULL, NULL, NULL);
 
+
+  handle = tp_channel_get_handle (priv->channel, NULL);
+  priv->contact = empathy_contact_factory_get_from_handle (priv->factory,
+                                                           priv->account,
+                                                           (guint) handle);
+
   if (!tp_cli_dbus_properties_run_get_all (priv->channel,
       -1, EMP_IFACE_CHANNEL_TYPE_FILE, &properties, &error, NULL))
     {