aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Schneppe <christian.schneppe@pix-art.de>2020-03-16 21:30:00 +0100
committerChristian Schneppe <christian.schneppe@pix-art.de>2020-03-16 21:30:00 +0100
commit7fa19f4f8c424fb68d4248aee9862dc00c4dc670 (patch)
treeb54856748667adc303001b8380c76575e0aba536
parent885f22f806a93d2e66e6c8d3aa6f0cb219e44079 (diff)
update Conversation and log filename on restoring orphaned files
-rw-r--r--src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java b/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java
index 010c0d290..f85670ec0 100644
--- a/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java
+++ b/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java
@@ -1304,9 +1304,10 @@ public class MessageAdapter extends ArrayAdapter<Message> implements CopyTextVie
}
private void markFileExisting(Message message) {
- Log.d(Config.LOGTAG, "Found and restored orphaned file");
+ Log.d(Config.LOGTAG, "Found and restored orphaned file " + message.getRelativeFilePath());
message.setFileDeleted(false);
activity.xmppConnectionService.updateMessage(message, false);
+ activity.xmppConnectionService.updateConversation((Conversation) message.getConversation());
}
private boolean checkFileExistence(Message message, View view, ViewHolder viewHolder) {