mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-20 20:48:07 +00:00
Prevent sent IMDN messages from being notified to the application.
This commit is contained in:
parent
6157e3a92a
commit
065dbf970f
2 changed files with 4 additions and 4 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue