diff options
author | z3bra <contactatz3bradotorg> | 2016-11-25 18:02:40 +0100 |
---|---|---|
committer | z3bra <contactatz3bradotorg> | 2016-11-25 18:02:40 +0100 |
commit | 305dda72d9daaa7bd7324e53a78fe6b999d373a4 (patch) | |
tree | 6bacc403326a7cd8bcdb50d3fe5cfe73c8df457d | |
parent | 5da24ad613bb88ee63c3d4447d1563ad95f0ea52 (diff) |
Discard sending of the avatar pictures
-rw-r--r-- | ratox.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -785,6 +785,12 @@ cbfilesendreq(Tox *m, uint32_t frnum, uint32_t fnum, uint32_t kind, uint64_t fsz memcpy(filename, fname, flen); filename[flen] = '\0'; + if (kind == TOX_FILE_KIND_AVATAR) { + if (!tox_file_control(tox, f->num, fnum, TOX_FILE_CONTROL_CANCEL, NULL)) + weprintf("Failed to kill avatar transfer\n"); + return; + } + /* We only support a single transfer at a time */ if (f->rxstate == TRANSFER_INPROGRESS) { logmsg(": %s : Rx > Rejected %s, already one in progress\n", |