From 1628d495d1c27a4864474d5e4a725e690b0dfba7 Mon Sep 17 00:00:00 2001 From: Anthony Bilinski Date: Thu, 9 May 2019 03:38:49 -0700 Subject: [PATCH] fix(corefile): handle empty avatar transfer in core --- src/core/corefile.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/corefile.cpp b/src/core/corefile.cpp index 9e80d6974..757b320bf 100644 --- a/src/core/corefile.cpp +++ b/src/core/corefile.cpp @@ -326,6 +326,7 @@ void CoreFile::onFileReceiveCallback(Tox* tox, uint32_t friendId, uint32_t fileI if (!filesize) { qDebug() << QString("Received empty avatar request %1:%2").arg(friendId).arg(fileId); // Avatars of size 0 means explicitely no avatar + tox_file_control(tox, friendId, fileId, TOX_FILE_CONTROL_CANCEL, nullptr); emit core->friendAvatarRemoved(core->getFriendPublicKey(friendId)); return; } else {