diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-07-26 20:44:28 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2016-07-26 20:44:28 +0200 |
commit | 58a3ef46cefd97aba593d2a541acbbd721ba07fd (patch) | |
tree | 3011d870e4188b75940a1d9bd44e6c481e8daacb /src/main | |
parent | 82908fb54b3d683acb9ab5ae10efbc5ce203d2f1 (diff) |
fixed regression in file delete detection due to missing !
Diffstat (limited to '')
-rw-r--r-- | src/main/java/eu/siacs/conversations/services/XmppConnectionService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java index fd620de2..44840ba2 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) { |