added Photo to Attachment.getForExt()

This commit is contained in:
mrbesen 2019-04-08 03:35:34 +02:00
parent c5ef10ba80
commit 01866b6a32
Signed by: MrBesen
GPG Key ID: 596B2350DCD67504
1 changed files with 2 additions and 0 deletions

View File

@ -256,6 +256,8 @@ public class MessageBuilder {
return Attachment.Audio;
} else if(extention.equalsIgnoreCase("ogg")) {
return Attachment.Voice;
} else if(extention.equalsIgnoreCase("jpg") || extention.equalsIgnoreCase("jpeg") || extention.equalsIgnoreCase("png")) {
return Attachment.Photo;
}
return Attachment.Document;
}