From 85496368370aed4c2ec365300fb0fd9f12bc7154 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Blin?=
 <sebastien.blin@savoirfairelinux.com>
Date: Thu, 11 Nov 2021 12:24:12 -0500
Subject: [PATCH] data_transfer: fix inverted condition

it's swarm if interactionId != ""

Change-Id: I5345eaeb60b71a45136a560507dd87a92049f043
---
 src/data_transfer.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/data_transfer.cpp b/src/data_transfer.cpp
index f7b2a44652..f3c4d05208 100644
--- a/src/data_transfer.cpp
+++ b/src/data_transfer.cpp
@@ -782,7 +782,7 @@ OutgoingFile::process()
         // But for now, we can just avoid to emit errors to the client, because for outgoing
         // transfer in a swarm, for outgoingFiles, we know that the file is ok. And the peer
         // will retry the transfer if they need, so we don't need to show errors.
-        if (interactionId_.empty() && !correct)
+        if (!interactionId_.empty() && !correct)
             return;
         auto code = correct ? DRing::DataTransferEventCode::finished
                             : DRing::DataTransferEventCode::closed_by_peer;
-- 
GitLab