Introduce new type: Viewtype (#256)

Introduce new type: Viewtype
This commit is contained in:
Friedel Ziegelmayer
2019-08-01 12:17:33 +02:00
committed by GitHub
13 changed files with 215 additions and 138 deletions

View File

@@ -1184,8 +1184,8 @@ pub unsafe fn dc_job_send_msg(context: &Context, msg_id: uint32_t) -> libc::c_in
.unwrap_or_default(),
);
if strlen(pathNfilename) > 0 {
if ((*mimefactory.msg).type_0 == DC_MSG_IMAGE
|| (*mimefactory.msg).type_0 == DC_MSG_GIF)
if ((*mimefactory.msg).type_0 == Viewtype::Image
|| (*mimefactory.msg).type_0 == Viewtype::Gif)
&& !(*mimefactory.msg).param.exists(Param::Width)
{
let mut buf = 0 as *mut libc::c_uchar;