mirror of
https://github.com/Tha14/toxic.git
synced 2025-06-28 06:16:45 +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:
@ -66,6 +66,8 @@ void on_friend_connection_status(Tox *m, uint32_t friendnumber, Tox_Connection c
|
||||
{
|
||||
UNUSED_VAR(userdata);
|
||||
|
||||
on_avatar_friend_connection_status(m, friendnumber, connection_status);
|
||||
|
||||
for (uint8_t i = 0; i < MAX_WINDOWS_NUM; ++i) {
|
||||
if (windows[i] != NULL && windows[i]->onConnectionChange != NULL) {
|
||||
windows[i]->onConnectionChange(windows[i], m, friendnumber, connection_status);
|
||||
|
Reference in New Issue
Block a user