From 58a3ef46cefd97aba593d2a541acbbd721ba07fd Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Tue, 26 Jul 2016 20:44:28 +0200 Subject: [PATCH] fixed regression in file delete detection due to missing ! --- .../eu/siacs/conversations/services/XmppConnectionService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java index fd620de24..44840ba29 100644 --- a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java +++ b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java @@ -1294,7 +1294,7 @@ public class XmppConnectionService extends Service { public void onMessageFound(Message message) { DownloadableFile file = fileBackend.getFile(message); if (file.getAbsolutePath().equals(path)) { - if (file.exists()) { + if (!file.exists()) { message.setTransferable(new TransferablePlaceholder(Transferable.STATUS_DELETED)); final int s = message.getStatus(); if (s == Message.STATUS_WAITING || s == Message.STATUS_OFFERED || s == Message.STATUS_UNSEND) {