added Photo to Attachment.getForExt()
This commit is contained in:
parent
c5ef10ba80
commit
01866b6a32
|
@ -256,6 +256,8 @@ public class MessageBuilder {
|
||||||
return Attachment.Audio;
|
return Attachment.Audio;
|
||||||
} else if(extention.equalsIgnoreCase("ogg")) {
|
} else if(extention.equalsIgnoreCase("ogg")) {
|
||||||
return Attachment.Voice;
|
return Attachment.Voice;
|
||||||
|
} else if(extention.equalsIgnoreCase("jpg") || extention.equalsIgnoreCase("jpeg") || extention.equalsIgnoreCase("png")) {
|
||||||
|
return Attachment.Photo;
|
||||||
}
|
}
|
||||||
return Attachment.Document;
|
return Attachment.Document;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue