Fix progress of receiving file transfers in Adium

Set the xfer before requesting the xfer from the user, as this is the only time when Adium sets the xfer size in its controller class.
This commit is contained in:
mjentsch 2015-05-24 14:55:26 +02:00
parent b5fb8df3b7
commit 82b36060b8

View file

@ -253,6 +253,8 @@ void tgprpl_recv_file (PurpleConnection * gc, const char *who, struct tgl_docume
purple_xfer_set_filename (X, filename);
g_free (filename);
purple_xfer_set_size (X, D->size);
tgprpl_xfer_init_data (X, purple_connection_get_protocol_data (gc), D, NULL);
purple_xfer_request (X);
}
@ -266,6 +268,8 @@ void tgprpl_recv_encr_file (PurpleConnection * gc, const char *who, struct tgl_e
purple_xfer_set_filename (X, filename);
g_free (filename);
purple_xfer_set_size (X, D->size);
tgprpl_xfer_init_data (X, purple_connection_get_protocol_data (gc), NULL, D);
purple_xfer_request (X);
}