Consider attachments without name as inline

This commit is contained in:
M66B 2019-12-14 16:16:46 +01:00
parent 006533b15e
commit 4988bf2efe
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ public class EntityAttachment {
public String error;
boolean isInline() {
return (disposition != null && disposition.equalsIgnoreCase(Part.INLINE) && cid != null);
return ((Part.INLINE.equals(disposition) || TextUtils.isEmpty(name)) && cid != null);
}
boolean isImage() {