From 7fa19f4f8c424fb68d4248aee9862dc00c4dc670 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Mon, 16 Mar 2020 21:30:00 +0100 Subject: update Conversation and log filename on restoring orphaned files --- src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 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) { -- cgit v1.2.3