This commit is contained in:
Grishka 2023-07-04 02:53:48 +03:00
parent 2d5089c047
commit 19bd189b33
1 changed files with 1 additions and 1 deletions

View File

@ -560,7 +560,7 @@ public class ComposeMediaViewController{
public boolean areAllAttachmentsImages(){
for(DraftMediaAttachment att:attachments){
if((att.mimeType==null && att.serverAttachment.type==Attachment.Type.IMAGE) || !att.mimeType.startsWith("image/"))
if((att.mimeType==null && att.serverAttachment.type==Attachment.Type.IMAGE) || (att.mimeType!=null && !att.mimeType.startsWith("image/")))
return false;
}
return true;