From c011806ed3608d47d18d8df7fb6228fa69dae529 Mon Sep 17 00:00:00 2001 From: Tomasz Marciniak Date: Thu, 19 Mar 2015 15:06:57 +0100 Subject: [PATCH] [Messaging] Restore function used to set mimeType. [Verification] Code compiles without errors. Change-Id: I8485f7fca3b26b4ee40ee33fe75da7c823b4f89d Signed-off-by: Tomasz Marciniak (cherry picked from commit 3ba5663281a25a3fc8f3bd18543fd407174fd96e) --- src/messaging/message.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/messaging/message.cc b/src/messaging/message.cc index 2114cd7d..980f4fc2 100644 --- a/src/messaging/message.cc +++ b/src/messaging/message.cc @@ -746,7 +746,9 @@ void Message::addMMSBodyAndAttachmentsToStruct(const AttachmentPtrVector attach, unsigned int type = MessageAttachment::MIMETypeStringToEnum( attach.at(i)->getMimeType()); msg_set_int_value(tmpAtt, MSG_MMS_ATTACH_MIME_TYPE_INT, type); - + msg_set_str_value(tmpAtt, MSG_MMS_ATTACH_CONTENT_TYPE_STR, + const_cast(attach.at(i)->getMimeType().c_str()), + MSG_MSG_ID_LEN); LoggerD("att[%d]: setting mime type:0x%x (orignal:%s)", i, type, attach.at(i)->getMimeType().c_str()); @@ -908,6 +910,8 @@ msg_struct_t Message::convertPlatformShortMessageToStruct(Message* message, LoggerE("Message(%p): Failed to set mms body filepath", message); throw common::UnknownException("Failed to set mms body filepath"); } + msg_set_str_value(media, MSG_MMS_MEDIA_CONTENT_TYPE_STR, + "text/plain", 10); //---------------------------------------------------------------------------- //Smile text -- 2.34.1