From 535ae9ccb0b431fc1bfa433fd445af4a73bcc7f6 Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Fri, 10 Mar 2017 16:53:26 +0100 Subject: [PATCH] only deliver imdn and is_composing if imdn_delivery=1 in rc --- coreapi/chat.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/coreapi/chat.c b/coreapi/chat.c index 2f0bf05b8..3ae49d132 100644 --- a/coreapi/chat.c +++ b/coreapi/chat.c @@ -728,9 +728,15 @@ LinphoneReason linphone_core_message_received(LinphoneCore *lc, SalOp *op, const } else if (is_im_iscomposing(msg->content_type)) { linphone_chat_room_notify_is_composing(cr, msg->message); linphone_chat_message_set_to_be_stored(msg, FALSE); + if(lp_config_get_int(cr->lc->config, "sip", "deliver_imdn", 0) != 1) { + goto end; + } } else if (is_imdn(msg->content_type)) { linphone_chat_room_notify_imdn(cr, msg->message); linphone_chat_message_set_to_be_stored(msg, FALSE); + if(lp_config_get_int(cr->lc->config, "sip", "deliver_imdn", 0) != 1) { + goto end; + } } else if (is_text(msg->content_type)) { linphone_chat_message_set_to_be_stored(msg, TRUE); }