Commit 065dbf97 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Prevent sent IMDN messages from being notified to the application.

parent 6157e3a9
......@@ -32,6 +32,7 @@ class ImdnMessagePrivate;
class LINPHONE_PUBLIC ImdnMessage : public NotificationMessage {
public:
friend class ChatRoomPrivate;
friend class Imdn;
L_OVERRIDE_SHARED_FROM_THIS(ImdnMessage);
......
......@@ -19,8 +19,7 @@
#include <algorithm>
#include "chat/chat-message/chat-message-p.h"
#include "chat/chat-message/imdn-message.h"
#include "chat/chat-message/imdn-message-p.h"
#include "chat/chat-room/chat-room-p.h"
#include "core/core-p.h"
#include "logger/logger.h"
......@@ -205,7 +204,7 @@ void Imdn::send () {
auto imdnMessage = chatRoom->getPrivate()->createImdnMessage(deliveredMessages, displayedMessages);
sentImdnMessages.push_back(imdnMessage);
if (networkReachable)
imdnMessage->send();
imdnMessage->getPrivate()->send();
deliveredMessages.clear();
displayedMessages.clear();
}
......@@ -213,7 +212,7 @@ void Imdn::send () {
auto imdnMessage = chatRoom->getPrivate()->createImdnMessage(nonDeliveredMessages);
sentImdnMessages.push_back(imdnMessage);
if (networkReachable)
imdnMessage->send();
imdnMessage->getPrivate()->send();
nonDeliveredMessages.clear();
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment