Merge pull request #1510 from deltachat/fix_drafted_gifs

fix messageType for drafted gifs
This commit is contained in:
bjoern
2020-07-28 18:30:41 +02:00
committed by GitHub
@@ -1065,7 +1065,8 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
for (Attachment attachment : attachments) {
String contentType = attachment.getContentType();
if (MediaUtil.isImageType(contentType) && slideDeck.getDocumentSlide()==null) {
msg = new DcMsg(dcContext, DcMsg.DC_MSG_IMAGE);
msg = new DcMsg(dcContext,
MediaUtil.isGif(contentType) ? DcMsg.DC_MSG_GIF : DcMsg.DC_MSG_IMAGE);
msg.setDimension(attachment.getWidth(), attachment.getHeight());
}
else if (MediaUtil.isAudioType(contentType)) {