added Photo to Attachment.getForExt()
This commit is contained in:
parent
c5ef10ba80
commit
01866b6a32
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue