diff --git a/src/data_transfer.cpp b/src/data_transfer.cpp
index f7b2a446529aa29a4c25c25d60033d5638e9cf3f..f3c4d05208510fe47b8f83904583dc5eb50156d7 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;