From e0fdfbb13bc2a63ce1cb77191bcf3f6dbec040cd Mon Sep 17 00:00:00 2001
From: Sylvain Berfini <sylvain.berfini@belledonne-communications.com>
Date: Thu, 8 Dec 2016 15:48:50 +0100
Subject: [PATCH] Added isComposing content-type to fake LinphoneChatMessage
 created for IM Encryption Engine incoming callback

---
 coreapi/chat.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/coreapi/chat.c b/coreapi/chat.c
index 6bc224dcb2..076ff14894 100644
--- a/coreapi/chat.c
+++ b/coreapi/chat.c
@@ -712,6 +712,7 @@ LinphoneReason linphone_core_is_composing_received(LinphoneCore *lc, SalOp *op,
 		int retval = -1;
 		LinphoneChatMessage *msg = linphone_chat_room_create_message(cr, is_composing->text);
 		linphone_chat_message_set_from_address(msg, addr);
+		msg->content_type = ms_strdup("application/im-iscomposing+xml");
 		if (imee) {
 			LinphoneImEncryptionEngineCbs *imee_cbs = linphone_im_encryption_engine_get_callbacks(imee);
 			LinphoneImEncryptionEngineIncomingMessageCb cb_process_incoming_message = linphone_im_encryption_engine_cbs_get_process_incoming_message(imee_cbs);
-- 
GitLab