Fixed outgoing messages with files in group chat download issue on other devices with same account

This commit is contained in:
Sylvain Berfini 2020-02-25 15:04:12 +01:00
parent 75f7d140d8
commit 1a44f80328

View file

@ -250,7 +250,7 @@ public class ChatMessageViewHolder extends RecyclerView.ViewHolder implements Vi
final TextView fileName = content.findViewById(R.id.file);
fileName.setVisibility(View.GONE);
if (c.isFile() || (c.isFileTransfer() && message.isOutgoing())) {
if (c.isFile() || (c.isFileTransfer() && !c.getFilePath().isEmpty())) {
// If message is outgoing, even if content
// is file transfer we have the file available
final String filePath = c.getFilePath();