Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
svn path=/trunk/; revision=1784
{
case EMP_FILE_TRANSFER_STATE_REMOTE_PENDING:
case EMP_FILE_TRANSFER_STATE_OPEN:
- if (empathy_tp_file_get_direction (tp_file) ==
- EMP_FILE_TRANSFER_DIRECTION_INCOMING)
+ if (empathy_tp_file_get_incoming (tp_file))
/* translators: first %s is filename, second %s is the contact name */
first_line_format = _("Receiving \"%s\" from %s");
else
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);