From 7c22bd51cc74aad8b0054fa97a18982593722834 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Thu, 17 Aug 2023 19:59:31 +0200 Subject: [PATCH] only accept friend transfers if it is an actual friend transfer o.o and gitignore --- .gitignore | 22 +++++++++++++++++++ .../tox_messages/tox_transfer_manager.cpp | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..248798c --- /dev/null +++ b/.gitignore @@ -0,0 +1,22 @@ +.vs/ +*.o +*.swp +~* +*~ +.idea/ +cmake-build-debug/ +cmake-build-debugandtest/ +cmake-build-release/ +*.stackdump +*.coredump +compile_commands.json +/build* +.clangd +.cache + +.DS_Store +.AppleDouble +.LSOverride + +CMakeLists.txt.user* +CMakeCache.txt diff --git a/solanaceae/tox_messages/tox_transfer_manager.cpp b/solanaceae/tox_messages/tox_transfer_manager.cpp index f412611..997f090 100644 --- a/solanaceae/tox_messages/tox_transfer_manager.cpp +++ b/solanaceae/tox_messages/tox_transfer_manager.cpp @@ -314,7 +314,7 @@ bool ToxTransferManager::onEvent(const Message::Events::MessageConstruct&) { } bool ToxTransferManager::onEvent(const Message::Events::MessageUpdated& e) { - if (e.e.all_of()) { + if (e.e.all_of()) { accept(e.e, e.e.get().save_to_path); // should?