aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-tp-file.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy/empathy-tp-file.c')
-rw-r--r--libempathy/empathy-tp-file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libempathy/empathy-tp-file.c b/libempathy/empathy-tp-file.c
index 61f4e26da..f98f3c405 100644
--- a/libempathy/empathy-tp-file.c
+++ b/libempathy/empathy-tp-file.c
@@ -370,8 +370,8 @@ tp_file_constructor (GType type,
priv->unix_socket_path = g_value_dup_string (g_hash_table_lookup (properties,
"SocketPath"));
- priv->direction = g_value_get_uint (g_hash_table_lookup (properties,
- "Direction"));
+ if (priv->state == EMP_FILE_TRANSFER_STATE_LOCAL_PENDING)
+ priv->incoming = TRUE;
g_hash_table_destroy (properties);