aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-07-26 20:44:28 +0200
committerChristian Schneppe <christian@pix-art.de>2016-07-27 19:30:18 +0200
commite10f4ccfa053c620070003768d9278befe5ea004 (patch)
tree4d2592e773e0eb17a7aefed96185545209b32f2e /src/main/java/eu/siacs
parentcd0f776a351462339315fee2329a2d4037602dbe (diff)
fixed regression in file delete detection due to missing !
Diffstat (limited to 'src/main/java/eu/siacs')
-rw-r--r--src/main/java/eu/siacs/conversations/services/XmppConnectionService.java2
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 93fa4cf44..4d740c2b2 100644
--- a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java
+++ b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java
@@ -1290,7 +1290,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) {