do not try to recode videos when attached as files; esp. if the detection with isVideoType() fails (webm may be an image), this gets annoying

This commit is contained in:
B. Petersen
2019-12-21 00:37:05 +01:00
parent 6ceab4cc84
commit 63b4b91139
@@ -993,7 +993,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
msg = new DcMsg(dcContext,
attachment.isVoiceNote()? DcMsg.DC_MSG_VOICE : DcMsg.DC_MSG_AUDIO);
}
else if (MediaUtil.isVideoType(contentType)) {
else if (MediaUtil.isVideoType(contentType) && slideDeck.getDocumentSlide()==null) {
msg = new DcMsg(dcContext, DcMsg.DC_MSG_VIDEO);
recompress = DcMsg.DC_MSG_VIDEO;
}