Fallback to attachment type and size

pull/162/head
M66B 5 years ago
parent 8e2e980f47
commit ed29c0776c

@ -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;

Loading…
Cancel
Save