mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-20 04:28:10 +00:00
make sure imdm are still passed to the application if deliver_imdn setting is set to 1
This commit is contained in:
parent
4b5e950d01
commit
6da095454c
1 changed files with 9 additions and 9 deletions
|
|
@ -447,15 +447,13 @@ static void forceUtf8Content (Content &content) {
|
|||
void ChatMessagePrivate::notifyReceiving () {
|
||||
L_Q();
|
||||
|
||||
if ((getContentType() == ContentType::Imdn) || (getContentType() == ContentType::ImIsComposing))
|
||||
return;
|
||||
|
||||
LinphoneChatRoom *chatRoom = L_GET_C_BACK_PTR(q->getChatRoom());
|
||||
linphone_chat_room_notify_chat_message_should_be_stored(chatRoom, L_GET_C_BACK_PTR(q->getSharedFromThis()));
|
||||
|
||||
if (toBeStored)
|
||||
storeInDb();
|
||||
|
||||
if ((getContentType() != ContentType::Imdn) && (getContentType() != ContentType::ImIsComposing)) {
|
||||
linphone_chat_room_notify_chat_message_should_be_stored(chatRoom, L_GET_C_BACK_PTR(q->getSharedFromThis()));
|
||||
|
||||
if (toBeStored)
|
||||
storeInDb();
|
||||
}
|
||||
shared_ptr<ConferenceChatMessageEvent> event = make_shared<ConferenceChatMessageEvent>(
|
||||
::time(nullptr), q->getSharedFromThis()
|
||||
);
|
||||
|
|
@ -463,7 +461,9 @@ void ChatMessagePrivate::notifyReceiving () {
|
|||
// Legacy
|
||||
q->getChatRoom()->getPrivate()->notifyChatMessageReceived(q->getSharedFromThis());
|
||||
|
||||
q->sendDeliveryNotification(LinphoneReasonNone);
|
||||
if ((getContentType() != ContentType::Imdn) && (getContentType() != ContentType::ImIsComposing)) {
|
||||
q->sendDeliveryNotification(LinphoneReasonNone);
|
||||
}
|
||||
}
|
||||
|
||||
LinphoneReason ChatMessagePrivate::receive () {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue