Fallback to attachment type and size

This commit is contained in:
M66B 2019-09-01 14:27:48 +02:00
parent 8e2e980f47
commit ed29c0776c
1 changed files with 1 additions and 2 deletions

View File

@ -899,8 +899,7 @@ public class MessageHelper {
if (index < 0) if (index < 0)
for (int i = 0; i < remotes.size(); i++) { for (int i = 0; i < remotes.size(); i++) {
EntityAttachment remote = remotes.get(i); EntityAttachment remote = remotes.get(i);
if (remote.name == null && remote.cid == null && if (Objects.equals(remote.type, local.type) &&
Objects.equals(remote.type, local.type) &&
Objects.equals(remote.size, local.size)) { Objects.equals(remote.size, local.size)) {
index = i; index = i;
break; break;