Fix attachment updates

Download progress
This commit is contained in:
M66B
2018-08-04 19:50:41 +00:00
parent f931dd7c66
commit 242be4c511
5 changed files with 31 additions and 8 deletions

View File

@@ -58,4 +58,20 @@ public class EntityAttachment {
@Ignore
BodyPart part;
@Override
public boolean equals(Object obj) {
if (obj instanceof EntityAttachment) {
EntityAttachment other = (EntityAttachment) obj;
return (this.message.equals(other.message) &&
this.sequence.equals(other.sequence) &&
(this.name == null ? other.name == null : this.name.equals(other.name)) &&
this.type.equals(other.type) &&
(this.size == null ? other.size == null : this.size.equals(other.size)) &&
(this.progress == null ? other.progress == null : this.progress.equals(other.progress)) &&
(this.content == null ? other.content == null : other.content != null));
} else
return false;
}
}