fix unhandled send file

This commit is contained in:
Green Sky 2023-08-09 11:18:16 +02:00
parent de332421f7
commit 62de447fd2
No known key found for this signature in database
2 changed files with 2 additions and 4 deletions

View File

@ -1,6 +1,5 @@
#pragma once
#include "tox/tox_events.h"
#include <solanaceae/toxcore/tox_event_interface.hpp>
#include <solanaceae/contact/contact_model3.hpp>

View File

@ -600,7 +600,6 @@ bool ToxTransferManager::sendFilePath(const Contact3 c, std::string_view file_na
return false;
}
toxSendFilePath(c, 0, file_name, file_path);
return false;
return static_cast<bool>(toxSendFilePath(c, 0, file_name, file_path));
}