mirror of
https://github.com/Tha14/toxic.git
synced 2025-07-06 09:26:44 +02:00
Fix some issues with file transfers
- Fix bug causing failed avatar transfers to be sent as normal file transfers when a friend goes offline and comes back online - Remove some unused members of the FileTransfer struct - Rename filenum -> filenumber and friendnum -> friendnumber
This commit is contained in:
@ -183,7 +183,7 @@ void cmd_savefile(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv
|
||||
}
|
||||
|
||||
Tox_Err_File_Control err;
|
||||
tox_file_control(m, self->num, ft->filenum, TOX_FILE_CONTROL_RESUME, &err);
|
||||
tox_file_control(m, self->num, ft->filenumber, TOX_FILE_CONTROL_RESUME, &err);
|
||||
|
||||
if (err != TOX_ERR_FILE_CONTROL_OK) {
|
||||
goto on_recv_error;
|
||||
|
Reference in New Issue
Block a user