mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-19 12:08:11 +00:00
only deliver imdn and is_composing if imdn_delivery=1 in rc
This commit is contained in:
parent
16a50a628d
commit
535ae9ccb0
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue