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 2d5ddf869d
commit 6619173f08

View file

@ -265,7 +265,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();